aboutsummaryrefslogtreecommitdiff
path: root/gdb/alpha-nat.c
diff options
context:
space:
mode:
authorPeter Schauer <Peter.Schauer@mytum.de>1995-03-28 06:57:39 +0000
committerPeter Schauer <Peter.Schauer@mytum.de>1995-03-28 06:57:39 +0000
commit3f403f6ab3ffae874065b27c87d8ba52b7c820be (patch)
tree997f3ba69378a68efecfd32c315d15e256fd4283 /gdb/alpha-nat.c
parent3b94a0b8716fe1f212f02eeb828f5c1946c046f1 (diff)
downloadgdb-3f403f6ab3ffae874065b27c87d8ba52b7c820be.zip
gdb-3f403f6ab3ffae874065b27c87d8ba52b7c820be.tar.gz
gdb-3f403f6ab3ffae874065b27c87d8ba52b7c820be.tar.bz2
* alpha-nat.c, irix4-nat.c, irix5-nat.c, mipsv4-nat.c,
sparc-tdep.c (supply_gregset, supply_fpregset): Fill inaccessible registers with zero to handle recent read_register_bytes change. * irix4-nat.c, irix5-nat.c, mipsv4-nat.c (supply_gregset, fill_gregset): Fix handling of CAUSE_REGNUM. * mips-nat.c (store_inferior_registers): Handle unwritable registers when storing a single register. * config/mips/tm-irix3.h (CAUSE_REGNUM, BADVADDR_REGNUM): Fix definitions. * mdebugread.c (parse_symbol, psymtab_to_symtab_1): Clear allocated mips_extra_func_info, if the debug info is corrupt, the PDR to fill it in might be missing.
Diffstat (limited to 'gdb/alpha-nat.c')
-rw-r--r--gdb/alpha-nat.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/alpha-nat.c b/gdb/alpha-nat.c
index 4d91fe8..4c48892 100644
--- a/gdb/alpha-nat.c
+++ b/gdb/alpha-nat.c
@@ -156,11 +156,16 @@ supply_gregset (gregsetp)
{
register int regi;
register long *regp = gregsetp->regs;
+ static char zerobuf[MAX_REGISTER_RAW_SIZE] = {0};
for (regi = 0; regi < 31; regi++)
supply_register (regi, (char *)(regp + regi));
supply_register (PC_REGNUM, (char *)(regp + 31));
+
+ /* Fill inaccessible registers with zero. */
+ supply_register (ZERO_REGNUM, zerobuf);
+ supply_register (FP_REGNUM, zerobuf);
}
void