diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 251b60df25..ceeecb705e 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2013-03-07 Pedro Alves + + * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char + for 'regcache->register_status'. + 2013-03-07 Pedro Alves * breakpoint.c (breakpoint_xfer_memory): Change type of local to diff --git a/gdb/regcache.c b/gdb/regcache.c index ca00f90d18..57d29e4b64 100644 --- a/gdb/regcache.c +++ b/gdb/regcache.c @@ -225,14 +225,14 @@ regcache_xmalloc_1 (struct gdbarch *gdbarch, struct address_space *aspace, regcache->registers = XCALLOC (descr->sizeof_cooked_registers, gdb_byte); regcache->register_status - = XCALLOC (descr->sizeof_cooked_register_status, gdb_byte); + = XCALLOC (descr->sizeof_cooked_register_status, signed char); } else { regcache->registers = XCALLOC (descr->sizeof_raw_registers, gdb_byte); regcache->register_status - = XCALLOC (descr->sizeof_raw_register_status, gdb_byte); + = XCALLOC (descr->sizeof_raw_register_status, signed char); } regcache->aspace = aspace; regcache->ptid = minus_one_ptid;