• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

GNU Binutils with patches for OS216


Commit MetaInfo

Revision3758ac483ded1c0d72f079e32ad1de4fcabecdb5 (tree)
Time2002-12-21 15:36:02
AuthorKevin Buettner <kevinb@redh...>
CommiterKevin Buettner

Log Message

Fix bug introduced when multiarching NUM_REGS.

Change Summary

Incremental Difference

--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,11 @@
11 2002-12-20 Kevin Buettner <kevinb@redhat.com>
22
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+
39 * Makefile.in (mips-linux-tdep.o): Add $(osabi_h) and $(gdb_string_h).
410 * config/mips/tm-linux.h (mips_linux_svr4_fetch_link_map_offsets)
511 (mips_linux_get_longjmp_target): Delete declarations.
--- 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,
21422142 return NULL;
21432143 memset (&temp_proc_desc, '\0', sizeof (temp_proc_desc));
21442144 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);
21462146 PROC_LOW_ADDR (&temp_proc_desc) = start_pc;
21472147 PROC_FRAME_REG (&temp_proc_desc) = SP_REGNUM;
21482148 PROC_PC_REG (&temp_proc_desc) = RA_REGNUM;