diff options
author | Kevin Buettner <kevinb@redhat.com> | 2002-12-21 06:36:02 +0000 |
---|---|---|
committer | Kevin Buettner <kevinb@redhat.com> | 2002-12-21 06:36:02 +0000 |
commit | 7e9f0e11e47bcee63c04fd22084e1c67f4927aa1 (patch) | |
tree | 4419b1bd662a7ab002f471230743933aa492bce6 | |
parent | 96bb4d5a35520c49e0b6027a5534335433071c99 (diff) | |
download | gdb-7e9f0e11e47bcee63c04fd22084e1c67f4927aa1.tar.gz |
Fix bug introduced when multiarching NUM_REGS.
-rw-r--r-- | gdb/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/mips-tdep.c | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index caf57c3d135..f0ce860e0e4 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,11 @@ 2002-12-20 Kevin Buettner <kevinb@redhat.com> + * mips-tdep.c (heuristic_proc_desc): Clear memory associated with + ``temp_saved_regs'', not the pointer or other storage contiguous + to this pointer. + +2002-12-20 Kevin Buettner <kevinb@redhat.com> + * Makefile.in (mips-linux-tdep.o): Add $(osabi_h) and $(gdb_string_h). * config/mips/tm-linux.h (mips_linux_svr4_fetch_link_map_offsets) (mips_linux_get_longjmp_target): Delete declarations. diff --git a/gdb/mips-tdep.c b/gdb/mips-tdep.c index 4fbaaf8e8a9..1686ee45433 100644 --- a/gdb/mips-tdep.c +++ b/gdb/mips-tdep.c @@ -2142,7 +2142,7 @@ heuristic_proc_desc (CORE_ADDR start_pc, CORE_ADDR limit_pc, return NULL; memset (&temp_proc_desc, '\0', sizeof (temp_proc_desc)); temp_saved_regs = xrealloc (temp_saved_regs, SIZEOF_FRAME_SAVED_REGS); - memset (&temp_saved_regs, '\0', SIZEOF_FRAME_SAVED_REGS); + memset (temp_saved_regs, '\0', SIZEOF_FRAME_SAVED_REGS); PROC_LOW_ADDR (&temp_proc_desc) = start_pc; PROC_FRAME_REG (&temp_proc_desc) = SP_REGNUM; PROC_PC_REG (&temp_proc_desc) = RA_REGNUM; |