Fix bug introduced when multiarching NUM_REGS.
This commit is contained in:
parent
19ed69dd06
commit
3758ac483d
2 changed files with 7 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
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).
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue