aboutsummaryrefslogtreecommitdiff
path: root/gdb/mips-tdep.c
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2002-08-20 19:41:59 +0000
committerMichael Snyder <msnyder@vmware.com>2002-08-20 19:41:59 +0000
commitb5d1566e1b317bce29393fbbce55cae87abf3805 (patch)
treee4457e1a9efef3c7cae3d3a9ceeab5ea4d4e96f7 /gdb/mips-tdep.c
parent73da396e0b7433c2b207da2204d0a1a6785df5e1 (diff)
downloadgdb-b5d1566e1b317bce29393fbbce55cae87abf3805.zip
gdb-b5d1566e1b317bce29393fbbce55cae87abf3805.tar.gz
gdb-b5d1566e1b317bce29393fbbce55cae87abf3805.tar.bz2
2002-08-19 Michael Snyder <msnyder@redhat.com>
* mips-tdep.c (mips_frame_num_args): New function. (mips_gdbarch_init): Set frame_chain, frameless_function_invocation, frame_saved_pc, frame_args_address, frame_locals_address, frame_num_args, and frame_args_skip. * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete. * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
Diffstat (limited to 'gdb/mips-tdep.c')
-rw-r--r--gdb/mips-tdep.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/gdb/mips-tdep.c b/gdb/mips-tdep.c
index 6308e4f..6a36dd8 100644
--- a/gdb/mips-tdep.c
+++ b/gdb/mips-tdep.c
@@ -4143,15 +4143,6 @@ mips_do_registers_info (int regnum, int fpregs)
}
}
-/* Return number of args passed to a frame. described by FIP.
- Can return -1, meaning no way to tell. */
-
-int
-mips_frame_num_args (struct frame_info *frame)
-{
- return -1;
-}
-
/* Is this a branch with a delay slot? */
static int is_delayed (unsigned long);
@@ -5922,7 +5913,16 @@ mips_gdbarch_init (struct gdbarch_info info,
set_gdbarch_coerce_float_to_double (gdbarch, mips_coerce_float_to_double);
+ set_gdbarch_frame_chain (gdbarch, mips_frame_chain);
set_gdbarch_frame_chain_valid (gdbarch, func_frame_chain_valid);
+ set_gdbarch_frameless_function_invocation (gdbarch,
+ generic_frameless_function_invocation_not);
+ set_gdbarch_frame_saved_pc (gdbarch, mips_frame_saved_pc);
+ set_gdbarch_frame_args_address (gdbarch, default_frame_address);
+ set_gdbarch_frame_locals_address (gdbarch, default_frame_address);
+ set_gdbarch_frame_num_args (gdbarch, frame_num_args_unknown);
+ set_gdbarch_frame_args_skip (gdbarch, 0);
+
set_gdbarch_get_saved_register (gdbarch, mips_get_saved_register);
set_gdbarch_inner_than (gdbarch, core_addr_lessthan);