diff options
Diffstat (limited to 'gdb/mips-xdep.c')
-rw-r--r-- | gdb/mips-xdep.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/mips-xdep.c b/gdb/mips-xdep.c index 6c0e519..e314bf7 100644 --- a/gdb/mips-xdep.c +++ b/gdb/mips-xdep.c @@ -81,6 +81,8 @@ store_inferior_registers (regno) : regno >= FP0_REGNUM ? FPR_BASE + (regno - FP0_REGNUM) \ : 0) +static const char zerobuf[MAX_REGISTER_RAW_SIZE]; + /* Get all registers from the inferior */ void @@ -104,6 +106,10 @@ fetch_inferior_registers (regno) } supply_register (regno, buf); } + + supply_register (ZERO_REGNUM, zerobuf); + /* Frame ptr reg must appear to be 0; it is faked by stack handling code. */ + supply_register (FP_REGNUM, zerobuf); } /* Store our register values back into the inferior. |