2003-06-09 Andrew Cagney <cagney@redhat.com>
* 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.
This commit is contained in:
parent
983a287a6f
commit
0ed8aa572b
@ -1,3 +1,23 @@
|
|||||||
|
2003-06-09 Andrew Cagney <cagney@redhat.com>
|
||||||
|
|
||||||
|
* 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 <cagney@redhat.com>
|
2003-06-09 Andrew Cagney <cagney@redhat.com>
|
||||||
|
|
||||||
* gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
|
* gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
|
||||||
|
@ -306,20 +306,6 @@ arm_frameless_function_invocation (struct frame_info *fi)
|
|||||||
return frameless;
|
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:
|
/* A typical Thumb prologue looks like this:
|
||||||
push {r7, lr}
|
push {r7, lr}
|
||||||
add sp, sp, #-28
|
add sp, sp, #-28
|
||||||
@ -2936,8 +2922,6 @@ arm_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
|
|||||||
set_gdbarch_frameless_function_invocation
|
set_gdbarch_frameless_function_invocation
|
||||||
(gdbarch, arm_frameless_function_invocation);
|
(gdbarch, arm_frameless_function_invocation);
|
||||||
set_gdbarch_deprecated_frame_saved_pc (gdbarch, arm_frame_saved_pc);
|
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_frame_args_skip (gdbarch, 0);
|
||||||
set_gdbarch_deprecated_frame_init_saved_regs (gdbarch, arm_frame_init_saved_regs);
|
set_gdbarch_deprecated_frame_init_saved_regs (gdbarch, arm_frame_init_saved_regs);
|
||||||
set_gdbarch_deprecated_pop_frame (gdbarch, arm_pop_frame);
|
set_gdbarch_deprecated_pop_frame (gdbarch, arm_pop_frame);
|
||||||
|
@ -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
|
CORE_ADDR
|
||||||
hppa_smash_text_address (CORE_ADDR 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
|
set_gdbarch_frameless_function_invocation
|
||||||
(gdbarch, hppa_frameless_function_invocation);
|
(gdbarch, hppa_frameless_function_invocation);
|
||||||
set_gdbarch_deprecated_frame_saved_pc (gdbarch, hppa_frame_saved_pc);
|
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_frame_args_skip (gdbarch, 0);
|
||||||
set_gdbarch_deprecated_push_dummy_frame (gdbarch, hppa_push_dummy_frame);
|
set_gdbarch_deprecated_push_dummy_frame (gdbarch, hppa_push_dummy_frame);
|
||||||
set_gdbarch_deprecated_pop_frame (gdbarch, hppa_pop_frame);
|
set_gdbarch_deprecated_pop_frame (gdbarch, hppa_pop_frame);
|
||||||
|
@ -419,12 +419,6 @@ m68hc11_frame_args_address (struct frame_info *frame)
|
|||||||
return addr;
|
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
|
/* Discard from the stack the innermost frame, restoring all saved
|
||||||
registers. */
|
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_chain (gdbarch, m68hc11_frame_chain);
|
||||||
set_gdbarch_deprecated_frame_saved_pc (gdbarch, m68hc11_frame_saved_pc);
|
set_gdbarch_deprecated_frame_saved_pc (gdbarch, m68hc11_frame_saved_pc);
|
||||||
set_gdbarch_frame_args_address (gdbarch, m68hc11_frame_args_address);
|
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_saved_pc_after_call (gdbarch, m68hc11_saved_pc_after_call);
|
||||||
|
|
||||||
set_gdbarch_deprecated_get_saved_register (gdbarch, deprecated_generic_get_saved_register);
|
set_gdbarch_deprecated_get_saved_register (gdbarch, deprecated_generic_get_saved_register);
|
||||||
|
@ -357,12 +357,6 @@ ns32k_frame_args_address (struct frame_info *frame)
|
|||||||
return (read_register (SP_REGNUM) - 4);
|
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
|
/* 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
|
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
|
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_deprecated_frame_saved_pc (gdbarch, ns32k_frame_saved_pc);
|
||||||
|
|
||||||
set_gdbarch_frame_args_address (gdbarch, ns32k_frame_args_address);
|
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);
|
set_gdbarch_deprecated_frame_init_saved_regs (gdbarch, ns32k_frame_init_saved_regs);
|
||||||
|
|
||||||
|
@ -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
|
static CORE_ADDR
|
||||||
s390_frame_saved_pc_nofix (struct frame_info *fi)
|
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_char_signed (gdbarch, 0);
|
||||||
|
|
||||||
set_gdbarch_frame_args_skip (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_chain (gdbarch, s390_frame_chain);
|
||||||
set_gdbarch_deprecated_frame_init_saved_regs (gdbarch, s390_frame_init_saved_regs);
|
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_store_struct_return (gdbarch, s390_store_struct_return);
|
||||||
set_gdbarch_deprecated_extract_return_value (gdbarch, s390_extract_return_value);
|
set_gdbarch_deprecated_extract_return_value (gdbarch, s390_extract_return_value);
|
||||||
set_gdbarch_deprecated_store_return_value (gdbarch, s390_store_return_value);
|
set_gdbarch_deprecated_store_return_value (gdbarch, s390_store_return_value);
|
||||||
|
@ -182,12 +182,6 @@ vax_frame_args_address (struct frame_info *frame)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static CORE_ADDR
|
|
||||||
vax_frame_locals_address (struct frame_info *frame)
|
|
||||||
{
|
|
||||||
return (get_frame_base (frame));
|
|
||||||
}
|
|
||||||
|
|
||||||
static int
|
static int
|
||||||
vax_frame_num_args (struct frame_info *fi)
|
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_deprecated_frame_saved_pc (gdbarch, vax_frame_saved_pc);
|
||||||
|
|
||||||
set_gdbarch_frame_args_address (gdbarch, vax_frame_args_address);
|
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);
|
set_gdbarch_deprecated_frame_init_saved_regs (gdbarch, vax_frame_init_saved_regs);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user