From: Andrew Cagney Date: Mon, 9 Jun 2003 20:08:56 +0000 (+0000) Subject: 2003-06-09 Andrew Cagney X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0ed8aa572bd30f1f2c97d9f50cebd84133a41dbc;p=binutils-gdb.git 2003-06-09 Andrew Cagney * vax-tdep.c (vax_frame_locals_address): Delete function. (vax_gdbarch_init): Do not set frame_locals_address. * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function. (m68hc11_gdbarch_init): Do not set frame_locals_address. * s390-tdep.c (s390_frame_args_address): Delete function. (s390_gdbarch_init): Do not set frame_args_address or frame_locals_address. * ns32k-tdep.c (ns32k_frame_locals_address): Delete. (ns32k_gdbarch_init): Do not set frame_locals_address. * hppa-tdep.c (hppa_frame_args_address): Delete function. (hppa_frame_locals_address): Delete function. (hppa_gdbarch_init): Do not set frame_args_address, or frame_locals_address. * arm-tdep.c (arm_frame_args_address): Delete. (arm_frame_locals_address): Delete. (arm_gdbarch_init): Do not set frame_args_address, or frame_locals_address. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index cf89b9063a1..2c5e099183c 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,23 @@ +2003-06-09 Andrew Cagney + + * vax-tdep.c (vax_frame_locals_address): Delete function. + (vax_gdbarch_init): Do not set frame_locals_address. + * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function. + (m68hc11_gdbarch_init): Do not set frame_locals_address. + * s390-tdep.c (s390_frame_args_address): Delete function. + (s390_gdbarch_init): Do not set frame_args_address or + frame_locals_address. + * ns32k-tdep.c (ns32k_frame_locals_address): Delete. + (ns32k_gdbarch_init): Do not set frame_locals_address. + * hppa-tdep.c (hppa_frame_args_address): Delete function. + (hppa_frame_locals_address): Delete function. + (hppa_gdbarch_init): Do not set frame_args_address, or + frame_locals_address. + * arm-tdep.c (arm_frame_args_address): Delete. + (arm_frame_locals_address): Delete. + (arm_gdbarch_init): Do not set frame_args_address, or + frame_locals_address. + 2003-06-09 Andrew Cagney * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate. diff --git a/gdb/arm-tdep.c b/gdb/arm-tdep.c index 045496ce117..f1384e0bc0c 100644 --- a/gdb/arm-tdep.c +++ b/gdb/arm-tdep.c @@ -306,20 +306,6 @@ arm_frameless_function_invocation (struct frame_info *fi) return frameless; } -/* The address of the arguments in the frame. */ -static CORE_ADDR -arm_frame_args_address (struct frame_info *fi) -{ - return get_frame_base (fi); -} - -/* The address of the local variables in the frame. */ -static CORE_ADDR -arm_frame_locals_address (struct frame_info *fi) -{ - return get_frame_base (fi); -} - /* A typical Thumb prologue looks like this: push {r7, lr} add sp, sp, #-28 @@ -2936,8 +2922,6 @@ arm_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) set_gdbarch_frameless_function_invocation (gdbarch, arm_frameless_function_invocation); set_gdbarch_deprecated_frame_saved_pc (gdbarch, arm_frame_saved_pc); - set_gdbarch_frame_args_address (gdbarch, arm_frame_args_address); - set_gdbarch_frame_locals_address (gdbarch, arm_frame_locals_address); set_gdbarch_frame_args_skip (gdbarch, 0); set_gdbarch_deprecated_frame_init_saved_regs (gdbarch, arm_frame_init_saved_regs); set_gdbarch_deprecated_pop_frame (gdbarch, arm_pop_frame); diff --git a/gdb/hppa-tdep.c b/gdb/hppa-tdep.c index 252954782cb..879f7588174 100644 --- a/gdb/hppa-tdep.c +++ b/gdb/hppa-tdep.c @@ -4874,18 +4874,6 @@ hppa_cannot_store_register (int regnum) } -CORE_ADDR -hppa_frame_args_address (struct frame_info *fi) -{ - return get_frame_base (fi); -} - -CORE_ADDR -hppa_frame_locals_address (struct frame_info *fi) -{ - return get_frame_base (fi); -} - CORE_ADDR hppa_smash_text_address (CORE_ADDR addr) { @@ -4972,8 +4960,6 @@ hppa_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) set_gdbarch_frameless_function_invocation (gdbarch, hppa_frameless_function_invocation); set_gdbarch_deprecated_frame_saved_pc (gdbarch, hppa_frame_saved_pc); - set_gdbarch_frame_args_address (gdbarch, hppa_frame_args_address); - set_gdbarch_frame_locals_address (gdbarch, hppa_frame_locals_address); set_gdbarch_frame_args_skip (gdbarch, 0); set_gdbarch_deprecated_push_dummy_frame (gdbarch, hppa_push_dummy_frame); set_gdbarch_deprecated_pop_frame (gdbarch, hppa_pop_frame); diff --git a/gdb/m68hc11-tdep.c b/gdb/m68hc11-tdep.c index ce7498e7ba4..1eed6b8360f 100644 --- a/gdb/m68hc11-tdep.c +++ b/gdb/m68hc11-tdep.c @@ -419,12 +419,6 @@ m68hc11_frame_args_address (struct frame_info *frame) return addr; } -static CORE_ADDR -m68hc11_frame_locals_address (struct frame_info *frame) -{ - return get_frame_base (frame); -} - /* Discard from the stack the innermost frame, restoring all saved registers. */ @@ -1393,7 +1387,6 @@ m68hc11_gdbarch_init (struct gdbarch_info info, set_gdbarch_deprecated_frame_chain (gdbarch, m68hc11_frame_chain); set_gdbarch_deprecated_frame_saved_pc (gdbarch, m68hc11_frame_saved_pc); set_gdbarch_frame_args_address (gdbarch, m68hc11_frame_args_address); - set_gdbarch_frame_locals_address (gdbarch, m68hc11_frame_locals_address); set_gdbarch_deprecated_saved_pc_after_call (gdbarch, m68hc11_saved_pc_after_call); set_gdbarch_deprecated_get_saved_register (gdbarch, deprecated_generic_get_saved_register); diff --git a/gdb/ns32k-tdep.c b/gdb/ns32k-tdep.c index 5dacfdf04a3..bb0e36ae519 100644 --- a/gdb/ns32k-tdep.c +++ b/gdb/ns32k-tdep.c @@ -357,12 +357,6 @@ ns32k_frame_args_address (struct frame_info *frame) return (read_register (SP_REGNUM) - 4); } -static CORE_ADDR -ns32k_frame_locals_address (struct frame_info *frame) -{ - return (get_frame_base (frame)); -} - /* Code to initialize the addresses of the saved registers of frame described by FRAME_INFO. This includes special registers such as pc and fp saved in special ways in the stack frame. sp is even more special: the address we @@ -576,7 +570,6 @@ ns32k_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) set_gdbarch_deprecated_frame_saved_pc (gdbarch, ns32k_frame_saved_pc); set_gdbarch_frame_args_address (gdbarch, ns32k_frame_args_address); - set_gdbarch_frame_locals_address (gdbarch, ns32k_frame_locals_address); set_gdbarch_deprecated_frame_init_saved_regs (gdbarch, ns32k_frame_init_saved_regs); diff --git a/gdb/s390-tdep.c b/gdb/s390-tdep.c index d53da9adee1..c0afdca1c97 100644 --- a/gdb/s390-tdep.c +++ b/gdb/s390-tdep.c @@ -941,15 +941,6 @@ s390_frame_init_saved_regs (struct frame_info *fi) -CORE_ADDR -s390_frame_args_address (struct frame_info *fi) -{ - - /* Apparently gdb already knows gdb_args_offset itself */ - return get_frame_base (fi); -} - - static CORE_ADDR s390_frame_saved_pc_nofix (struct frame_info *fi) { @@ -1816,10 +1807,8 @@ s390_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) set_gdbarch_char_signed (gdbarch, 0); set_gdbarch_frame_args_skip (gdbarch, 0); - set_gdbarch_frame_args_address (gdbarch, s390_frame_args_address); set_gdbarch_deprecated_frame_chain (gdbarch, s390_frame_chain); set_gdbarch_deprecated_frame_init_saved_regs (gdbarch, s390_frame_init_saved_regs); - set_gdbarch_frame_locals_address (gdbarch, s390_frame_args_address); set_gdbarch_deprecated_store_struct_return (gdbarch, s390_store_struct_return); set_gdbarch_deprecated_extract_return_value (gdbarch, s390_extract_return_value); set_gdbarch_deprecated_store_return_value (gdbarch, s390_store_return_value); diff --git a/gdb/vax-tdep.c b/gdb/vax-tdep.c index eda740fe71a..ecfb6a8cc30 100644 --- a/gdb/vax-tdep.c +++ b/gdb/vax-tdep.c @@ -182,12 +182,6 @@ vax_frame_args_address (struct frame_info *frame) return 0; } -static CORE_ADDR -vax_frame_locals_address (struct frame_info *frame) -{ - return (get_frame_base (frame)); -} - static int vax_frame_num_args (struct frame_info *fi) { @@ -391,7 +385,6 @@ vax_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) set_gdbarch_deprecated_frame_saved_pc (gdbarch, vax_frame_saved_pc); set_gdbarch_frame_args_address (gdbarch, vax_frame_args_address); - set_gdbarch_frame_locals_address (gdbarch, vax_frame_locals_address); set_gdbarch_deprecated_frame_init_saved_regs (gdbarch, vax_frame_init_saved_regs);