summaryrefslogtreecommitdiff
path: root/gdb/d10v-tdep.c
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@specifix.com>2001-01-02 20:21:53 +0000
committerMichael Snyder <msnyder@specifix.com>2001-01-02 20:21:53 +0000
commitcfc53d8638a1d60b406d7815c63480612131da37 (patch)
treea0741488c7e24d8380e5ff95269497ef9f879c5f /gdb/d10v-tdep.c
parent14126495032c7a402b56c5f606cccc8c2f51f38c (diff)
downloadgdb-cfc53d8638a1d60b406d7815c63480612131da37.tar.gz
2000-12-20 Michael Snyder <msnyder@mvstp600e.cygnus.com>
* arch-utils.c (default_frame_address): New function. Default implementation of frame_args_address and frame_locals_address. * arch-utils.h (default_frame_address): Export. * d10v-tdep.c (d10v_gdbarch_init): Use default_frame_address. (d10v_frame_args_address, d10v_frame_locals_address): Delete. * sh-tdep.c (sh_gdbarch_init): Use default_frame_address. (sh_frame_args_address, sh_frame_locals_address): Delete. * sparc-tdep.c (sparc_gdbarch_init): Use default_frame_address. (sparc_frame_address): Delete.
Diffstat (limited to 'gdb/d10v-tdep.c')
-rw-r--r--gdb/d10v-tdep.c16
1 files changed, 2 insertions, 14 deletions
diff --git a/gdb/d10v-tdep.c b/gdb/d10v-tdep.c
index ee14abacb43..58e2e833fd8 100644
--- a/gdb/d10v-tdep.c
+++ b/gdb/d10v-tdep.c
@@ -438,18 +438,6 @@ d10v_frame_saved_pc (struct frame_info *frame)
return ((frame)->extra_info->return_pc);
}
-CORE_ADDR
-d10v_frame_args_address (struct frame_info *fi)
-{
- return (fi)->frame;
-}
-
-CORE_ADDR
-d10v_frame_locals_address (struct frame_info *fi)
-{
- return (fi)->frame;
-}
-
/* Immediately after a function call, return the saved pc. We can't
use frame->return_pc beause that is determined by reading R13 off
the stack and that may not be written yet. */
@@ -1592,8 +1580,8 @@ d10v_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
set_gdbarch_frame_chain (gdbarch, d10v_frame_chain);
set_gdbarch_frame_chain_valid (gdbarch, d10v_frame_chain_valid);
set_gdbarch_frame_saved_pc (gdbarch, d10v_frame_saved_pc);
- set_gdbarch_frame_args_address (gdbarch, d10v_frame_args_address);
- set_gdbarch_frame_locals_address (gdbarch, d10v_frame_locals_address);
+ set_gdbarch_frame_args_address (gdbarch, default_frame_address);
+ set_gdbarch_frame_locals_address (gdbarch, default_frame_address);
set_gdbarch_saved_pc_after_call (gdbarch, d10v_saved_pc_after_call);
set_gdbarch_frame_num_args (gdbarch, frame_num_args_unknown);
set_gdbarch_stack_align (gdbarch, d10v_stack_align);