GNU Binutils with patches for OS216
修订版 | 3758ac483ded1c0d72f079e32ad1de4fcabecdb5 (tree) |
---|---|
时间 | 2002-12-21 15:36:02 |
作者 | Kevin Buettner <kevinb@redh...> |
Commiter | Kevin Buettner |
Fix bug introduced when multiarching NUM_REGS.
@@ -1,5 +1,11 @@ | ||
1 | 1 | 2002-12-20 Kevin Buettner <kevinb@redhat.com> |
2 | 2 | |
3 | + * mips-tdep.c (heuristic_proc_desc): Clear memory associated with | |
4 | + ``temp_saved_regs'', not the pointer or other storage contiguous | |
5 | + to this pointer. | |
6 | + | |
7 | +2002-12-20 Kevin Buettner <kevinb@redhat.com> | |
8 | + | |
3 | 9 | * Makefile.in (mips-linux-tdep.o): Add $(osabi_h) and $(gdb_string_h). |
4 | 10 | * config/mips/tm-linux.h (mips_linux_svr4_fetch_link_map_offsets) |
5 | 11 | (mips_linux_get_longjmp_target): Delete declarations. |
@@ -2142,7 +2142,7 @@ heuristic_proc_desc (CORE_ADDR start_pc, CORE_ADDR limit_pc, | ||
2142 | 2142 | return NULL; |
2143 | 2143 | memset (&temp_proc_desc, '\0', sizeof (temp_proc_desc)); |
2144 | 2144 | temp_saved_regs = xrealloc (temp_saved_regs, SIZEOF_FRAME_SAVED_REGS); |
2145 | - memset (&temp_saved_regs, '\0', SIZEOF_FRAME_SAVED_REGS); | |
2145 | + memset (temp_saved_regs, '\0', SIZEOF_FRAME_SAVED_REGS); | |
2146 | 2146 | PROC_LOW_ADDR (&temp_proc_desc) = start_pc; |
2147 | 2147 | PROC_FRAME_REG (&temp_proc_desc) = SP_REGNUM; |
2148 | 2148 | PROC_PC_REG (&temp_proc_desc) = RA_REGNUM; |