diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index 30df0bc8a83..2c11f89730f 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,3 +1,7 @@ +2016-02-10 Yao Qi + + * regcache.c (regcache_raw_read_unsigned): Clear *VAL. + 2016-02-09 Simon Marchi * configure.ac: Use AC_CONFIG_FILES instead of passing arguments diff --git a/gdb/gdbserver/regcache.c b/gdb/gdbserver/regcache.c index 6a737ea37ec..2af8e241d98 100644 --- a/gdb/gdbserver/regcache.c +++ b/gdb/gdbserver/regcache.c @@ -440,6 +440,7 @@ regcache_raw_read_unsigned (struct regcache *regcache, int regnum, "%d bytes."), (int) sizeof (ULONGEST)); + *val = 0; collect_register (regcache, regnum, val); return REG_VALID;