From c347ee3e5153ee6cf2775feac0c9834f86f5da17 Mon Sep 17 00:00:00 2001 From: Michael Snyder Date: Tue, 2 Jan 2001 20:21:53 +0000 Subject: 2000-12-20 Michael Snyder * 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. --- gdb/arch-utils.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'gdb/arch-utils.c') 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 -- cgit v1.1