aboutsummaryrefslogtreecommitdiff
path: root/gdb/mips-tdep.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2001-06-15 23:10:55 +0000
committerAndrew Cagney <cagney@redhat.com>2001-06-15 23:10:55 +0000
commit10312cc4d25cc384e349900124dacff806955797 (patch)
tree8374ffa3ffdc22353254f7aa9fc6e3dccb986038 /gdb/mips-tdep.c
parentdd80620e6b85a692434015686adb5e0242734089 (diff)
downloadgdb-10312cc4d25cc384e349900124dacff806955797.zip
gdb-10312cc4d25cc384e349900124dacff806955797.tar.gz
gdb-10312cc4d25cc384e349900124dacff806955797.tar.bz2
Multi-arch INIT_FRAME_PC() and INIT_FRAME_PC_FIRST().
Diffstat (limited to 'gdb/mips-tdep.c')
-rw-r--r--gdb/mips-tdep.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/gdb/mips-tdep.c b/gdb/mips-tdep.c
index 2d86b5e..bb7a6c4 100644
--- a/gdb/mips-tdep.c
+++ b/gdb/mips-tdep.c
@@ -1379,7 +1379,7 @@ mips_addr_bits_remove (CORE_ADDR addr)
return addr;
}
-void
+static void
mips_init_frame_pc_first (int fromleaf, struct frame_info *prev)
{
CORE_ADDR pc, tmp;
@@ -4127,6 +4127,10 @@ mips_gdbarch_init (struct gdbarch_info info,
ensure that all 32 bit addresses are sign extended to 64 bits. */
set_gdbarch_addr_bits_remove (gdbarch, mips_addr_bits_remove);
+ /* There's a mess in stack frame creation. See comments in
+ blockframe.c near reference to INIT_FRAME_PC_FIRST. */
+ set_gdbarch_init_frame_pc_first (gdbarch, mips_init_frame_pc_first);
+
/* Map debug register numbers onto internal register numbers. */
set_gdbarch_stab_reg_to_regnum (gdbarch, mips_stab_reg_to_regnum);
set_gdbarch_ecoff_reg_to_regnum (gdbarch, mips_ecoff_reg_to_regnum);
@@ -4329,12 +4333,6 @@ mips_dump_tdep (struct gdbarch *current_gdbarch, struct ui_file *file)
"mips_dump_tdep: IGNORE_HELPER_CALL # %s\n",
XSTRING (IGNORE_HELPER_CALL (PC)));
fprintf_unfiltered (file,
- "mips_dump_tdep: INIT_FRAME_PC # %s\n",
- XSTRING (INIT_FRAME_PC (FROMLEAF, PREV)));
- fprintf_unfiltered (file,
- "mips_dump_tdep: INIT_FRAME_PC_FIRST # %s\n",
- XSTRING (INIT_FRAME_PC_FIRST (FROMLEAF, PREV)));
- fprintf_unfiltered (file,
"mips_dump_tdep: IN_SIGTRAMP # %s\n",
XSTRING (IN_SIGTRAMP (PC, NAME)));
fprintf_unfiltered (file,