aboutsummaryrefslogtreecommitdiff
path: root/gdb/arch-utils.c
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2001-01-02 20:21:53 +0000
committerMichael Snyder <msnyder@vmware.com>2001-01-02 20:21:53 +0000
commitc347ee3e5153ee6cf2775feac0c9834f86f5da17 (patch)
tree7593b2eac6a89d9451e21628bd6060fb2ad361ab /gdb/arch-utils.c
parentab32098a86f9851361d5d150419e39c9eccfe969 (diff)
downloadgdb-c347ee3e5153ee6cf2775feac0c9834f86f5da17.zip
gdb-c347ee3e5153ee6cf2775feac0c9834f86f5da17.tar.gz
gdb-c347ee3e5153ee6cf2775feac0c9834f86f5da17.tar.bz2
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/arch-utils.c')
-rw-r--r--gdb/arch-utils.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/gdb/arch-utils.c b/gdb/arch-utils.c
index 7a80628..00aad2f 100644
--- a/gdb/arch-utils.c
+++ b/gdb/arch-utils.c
@@ -239,6 +239,13 @@ no_op_reg_to_regnum (int reg)
return reg;
}
+/* For use by frame_args_address and frame_locals_address. */
+CORE_ADDR
+default_frame_address (struct frame_info *fi)
+{
+ return fi->frame;
+}
+
/* Functions to manipulate the endianness of the target. */
#ifdef TARGET_BYTE_ORDER_SELECTABLE