+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
+
2002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
* varobj.c (find_frame_addr_in_frame_chain):
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)
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);
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;
/* 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);
/* 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);
# 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
#