This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[commit] Eliminate default_frame_address()
- From: Andrew Cagney <ac131313 at redhat dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Sun, 24 Nov 2002 23:28:29 -0500
- Subject: [commit] Eliminate default_frame_address()
Hello,
Now that there is a get_frame_base() function, the
default_frame_address() function is redundant.
This deletes it.
committed,
Andrew
2002-11-24 Andrew Cagney <ac131313@redhat.com>
* gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
default to get_frame_base.
* gdbarch.h, gdbarch.c: Regenerate.
* arch-utils.c (default_frame_address): Delete function.
* arch-utils.h (default_frame_address): Delete declaration
Index: arch-utils.c
===================================================================
RCS file: /cvs/src/src/gdb/arch-utils.c,v
retrieving revision 1.70
diff -u -r1.70 arch-utils.c
--- arch-utils.c 14 Nov 2002 20:37:28 -0000 1.70
+++ arch-utils.c 25 Nov 2002 04:10:18 -0000
@@ -313,13 +313,6 @@
return reg;
}
-/* For use by frame_args_address and frame_locals_address. */
-CORE_ADDR
-default_frame_address (struct frame_info *fi)
-{
- return fi->frame;
-}
-
/* Default prepare_to_procced(). */
int
default_prepare_to_proceed (int select_it)
Index: arch-utils.h
===================================================================
RCS file: /cvs/src/src/gdb/arch-utils.h,v
retrieving revision 1.41
diff -u -r1.41 arch-utils.h
--- arch-utils.h 24 Aug 2002 00:21:34 -0000 1.41
+++ arch-utils.h 25 Nov 2002 04:10:18 -0000
@@ -109,10 +109,6 @@
extern int no_op_reg_to_regnum (int reg);
-/* Default frame_args_address and frame_locals_address. */
-
-extern CORE_ADDR default_frame_address (struct frame_info *);
-
/* Default prepare_to_procced. */
extern int default_prepare_to_proceed (int select_it);
Index: gdbarch.c
===================================================================
RCS file: /cvs/src/src/gdb/gdbarch.c,v
retrieving revision 1.160
diff -u -r1.160 gdbarch.c
--- gdbarch.c 23 Nov 2002 01:39:25 -0000 1.160
+++ gdbarch.c 25 Nov 2002 04:12:24 -0000
@@ -556,8 +556,8 @@
current_gdbarch->frame_args_skip = -1;
current_gdbarch->frameless_function_invocation = generic_frameless_function_invocation_not;
current_gdbarch->frame_chain_valid = generic_func_frame_chain_valid;
- current_gdbarch->frame_args_address = default_frame_address;
- current_gdbarch->frame_locals_address = default_frame_address;
+ current_gdbarch->frame_args_address = get_frame_base;
+ current_gdbarch->frame_locals_address = get_frame_base;
current_gdbarch->extra_stack_alignment_needed = 1;
current_gdbarch->convert_from_func_ptr_addr = core_addr_identity;
current_gdbarch->addr_bits_remove = core_addr_identity;
Index: gdbarch.h
===================================================================
RCS file: /cvs/src/src/gdb/gdbarch.h,v
retrieving revision 1.126
diff -u -r1.126 gdbarch.h
--- gdbarch.h 23 Nov 2002 01:39:25 -0000 1.126
+++ gdbarch.h 25 Nov 2002 04:12:26 -0000
@@ -1952,7 +1952,7 @@
/* Default (function) for non- multi-arch platforms. */
#if (!GDB_MULTI_ARCH) && !defined (FRAME_ARGS_ADDRESS)
-#define FRAME_ARGS_ADDRESS(fi) (default_frame_address (fi))
+#define FRAME_ARGS_ADDRESS(fi) (get_frame_base (fi))
#endif
typedef CORE_ADDR (gdbarch_frame_args_address_ftype) (struct frame_info *fi);
@@ -1969,7 +1969,7 @@
/* Default (function) for non- multi-arch platforms. */
#if (!GDB_MULTI_ARCH) && !defined (FRAME_LOCALS_ADDRESS)
-#define FRAME_LOCALS_ADDRESS(fi) (default_frame_address (fi))
+#define FRAME_LOCALS_ADDRESS(fi) (get_frame_base (fi))
#endif
typedef CORE_ADDR (gdbarch_frame_locals_address_ftype) (struct frame_info *fi);
Index: gdbarch.sh
===================================================================
RCS file: /cvs/src/src/gdb/gdbarch.sh,v
retrieving revision 1.172
diff -u -r1.172 gdbarch.sh
--- gdbarch.sh 23 Nov 2002 01:39:25 -0000 1.172
+++ gdbarch.sh 25 Nov 2002 04:12:59 -0000
@@ -566,8 +566,8 @@
# functions.
f:2:FRAME_CHAIN_VALID:int:frame_chain_valid:CORE_ADDR chain, struct frame_info *thisframe:chain, thisframe:::generic_func_frame_chain_valid::0
f:2:FRAME_SAVED_PC:CORE_ADDR:frame_saved_pc:struct frame_info *fi:fi::0:0
-f:2:FRAME_ARGS_ADDRESS:CORE_ADDR:frame_args_address:struct frame_info *fi:fi::0:default_frame_address::0
-f:2:FRAME_LOCALS_ADDRESS:CORE_ADDR:frame_locals_address:struct frame_info *fi:fi::0:default_frame_address::0
+f:2:FRAME_ARGS_ADDRESS:CORE_ADDR:frame_args_address:struct frame_info *fi:fi::0:get_frame_base::0
+f:2:FRAME_LOCALS_ADDRESS:CORE_ADDR:frame_locals_address:struct frame_info *fi:fi::0:get_frame_base::0
f:2:SAVED_PC_AFTER_CALL:CORE_ADDR:saved_pc_after_call:struct frame_info *frame:frame::0:0
f:2:FRAME_NUM_ARGS:int:frame_num_args:struct frame_info *frame:frame::0:0
#