diff options
author | Mark Kettenis <kettenis@gnu.org> | 2011-05-21 19:19:45 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@gnu.org> | 2011-05-21 19:19:45 +0000 |
commit | 22e74ef9b59080f4cf880185ec09c483952eb74f (patch) | |
tree | e0a093b1eb13b08b7f5e5c213aee58bcf4ea00fe /gdb/sparc64-tdep.c | |
parent | b71457c579b2c672a88c35a3886a2704ab52ad4e (diff) | |
download | fsf-binutils-gdb-22e74ef9b59080f4cf880185ec09c483952eb74f.zip fsf-binutils-gdb-22e74ef9b59080f4cf880185ec09c483952eb74f.tar.gz fsf-binutils-gdb-22e74ef9b59080f4cf880185ec09c483952eb74f.tar.bz2 |
* sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
zero as the value for %g0 in the register cache.
* sparc-tdep.c (sparc32_supply_gregset): Likewise.
* sparc64-tdep.c (sparc64_supply_gregset): Likewise.
Diffstat (limited to 'gdb/sparc64-tdep.c')
-rw-r--r-- | gdb/sparc64-tdep.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/sparc64-tdep.c b/gdb/sparc64-tdep.c index 674d390..6efa220 100644 --- a/gdb/sparc64-tdep.c +++ b/gdb/sparc64-tdep.c @@ -1206,6 +1206,7 @@ sparc64_supply_gregset (const struct sparc_gregset *gregset, enum bfd_endian byte_order = gdbarch_byte_order (gdbarch); int sparc32 = (gdbarch_ptr_bit (gdbarch) == 32); const gdb_byte *regs = gregs; + gdb_byte zero[8] = { 0 }; int i; if (sparc32) @@ -1268,7 +1269,7 @@ sparc64_supply_gregset (const struct sparc_gregset *gregset, } if (regnum == SPARC_G0_REGNUM || regnum == -1) - regcache_raw_supply (regcache, SPARC_G0_REGNUM, NULL); + regcache_raw_supply (regcache, SPARC_G0_REGNUM, &zero); if ((regnum >= SPARC_G1_REGNUM && regnum <= SPARC_O7_REGNUM) || regnum == -1) { |