2004-05-08 Andrew Cagney <cagney@redhat.com>
* infcall.c (call_function_by_hand): When no DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos. * rs6000-tdep.c (rs6000_gdbarch_init): Do not set DEPRECATED_SAVE_DUMMY_FRAME_TOS. * mn10300-tdep.c (mn10300_gdbarch_init): Ditto. * mcore-tdep.c (mcore_gdbarch_init): Ditto.
This commit is contained in:
parent
e21059f29c
commit
1ac839b8cc
5 changed files with 13 additions and 11 deletions
|
@ -1,5 +1,12 @@
|
||||||
2004-05-08 Andrew Cagney <cagney@redhat.com>
|
2004-05-08 Andrew Cagney <cagney@redhat.com>
|
||||||
|
|
||||||
|
* infcall.c (call_function_by_hand): When no
|
||||||
|
DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
|
||||||
|
* rs6000-tdep.c (rs6000_gdbarch_init): Do not set
|
||||||
|
DEPRECATED_SAVE_DUMMY_FRAME_TOS.
|
||||||
|
* mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
|
||||||
|
* mcore-tdep.c (mcore_gdbarch_init): Ditto.
|
||||||
|
|
||||||
* gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
|
* gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
|
||||||
* gdbarch.h, gdbarch.c: Re-generate.
|
* gdbarch.h, gdbarch.c: Re-generate.
|
||||||
* ns32k-tdep.c (ns32k_gdbarch_init): Do not set
|
* ns32k-tdep.c (ns32k_gdbarch_init): Do not set
|
||||||
|
|
|
@ -721,15 +721,13 @@ You must use a pointer to function type variable. Command ignored.", arg_name);
|
||||||
if (DEPRECATED_DUMMY_WRITE_SP_P ())
|
if (DEPRECATED_DUMMY_WRITE_SP_P ())
|
||||||
DEPRECATED_DUMMY_WRITE_SP (sp);
|
DEPRECATED_DUMMY_WRITE_SP (sp);
|
||||||
|
|
||||||
if (gdbarch_unwind_dummy_id_p (current_gdbarch))
|
if (DEPRECATED_SAVE_DUMMY_FRAME_TOS_P ())
|
||||||
{
|
|
||||||
/* Sanity. The exact same SP value is returned by
|
|
||||||
PUSH_DUMMY_CALL, saved as the dummy-frame TOS, and used by
|
|
||||||
unwind_dummy_id to form the frame ID's stack address. */
|
|
||||||
generic_save_dummy_frame_tos (sp);
|
|
||||||
}
|
|
||||||
else if (DEPRECATED_SAVE_DUMMY_FRAME_TOS_P ())
|
|
||||||
DEPRECATED_SAVE_DUMMY_FRAME_TOS (sp);
|
DEPRECATED_SAVE_DUMMY_FRAME_TOS (sp);
|
||||||
|
else
|
||||||
|
/* Sanity. The exact same SP value is returned by
|
||||||
|
PUSH_DUMMY_CALL, saved as the dummy-frame TOS, and used by
|
||||||
|
unwind_dummy_id to form the frame ID's stack address. */
|
||||||
|
generic_save_dummy_frame_tos (sp);
|
||||||
|
|
||||||
/* Now proceed, having reached the desired place. */
|
/* Now proceed, having reached the desired place. */
|
||||||
clear_proceed_status ();
|
clear_proceed_status ();
|
||||||
|
|
|
@ -1055,7 +1055,6 @@ mcore_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
|
||||||
|
|
||||||
/* Call Dummies: */
|
/* Call Dummies: */
|
||||||
|
|
||||||
set_gdbarch_deprecated_save_dummy_frame_tos (gdbarch, generic_save_dummy_frame_tos);
|
|
||||||
set_gdbarch_deprecated_saved_pc_after_call (gdbarch, mcore_saved_pc_after_call);
|
set_gdbarch_deprecated_saved_pc_after_call (gdbarch, mcore_saved_pc_after_call);
|
||||||
set_gdbarch_breakpoint_from_pc (gdbarch, mcore_breakpoint_from_pc);
|
set_gdbarch_breakpoint_from_pc (gdbarch, mcore_breakpoint_from_pc);
|
||||||
set_gdbarch_deprecated_push_return_address (gdbarch, mcore_push_return_address);
|
set_gdbarch_deprecated_push_return_address (gdbarch, mcore_push_return_address);
|
||||||
|
|
|
@ -1189,7 +1189,6 @@ mn10300_gdbarch_init (struct gdbarch_info info,
|
||||||
set_gdbarch_deprecated_reg_struct_has_addr
|
set_gdbarch_deprecated_reg_struct_has_addr
|
||||||
(gdbarch, mn10300_reg_struct_has_addr);
|
(gdbarch, mn10300_reg_struct_has_addr);
|
||||||
set_gdbarch_deprecated_push_return_address (gdbarch, mn10300_push_return_address);
|
set_gdbarch_deprecated_push_return_address (gdbarch, mn10300_push_return_address);
|
||||||
set_gdbarch_deprecated_save_dummy_frame_tos (gdbarch, generic_save_dummy_frame_tos);
|
|
||||||
set_gdbarch_use_struct_convention (gdbarch, mn10300_use_struct_convention);
|
set_gdbarch_use_struct_convention (gdbarch, mn10300_use_struct_convention);
|
||||||
|
|
||||||
tdep->am33_mode = am33_mode;
|
tdep->am33_mode = am33_mode;
|
||||||
|
|
|
@ -2904,7 +2904,6 @@ rs6000_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
|
||||||
frame_base_append_sniffer (gdbarch, rs6000_frame_base_sniffer);
|
frame_base_append_sniffer (gdbarch, rs6000_frame_base_sniffer);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
set_gdbarch_deprecated_save_dummy_frame_tos (gdbarch, generic_save_dummy_frame_tos);
|
|
||||||
set_gdbarch_believe_pcc_promotion (gdbarch, 1);
|
set_gdbarch_believe_pcc_promotion (gdbarch, 1);
|
||||||
|
|
||||||
set_gdbarch_unwind_pc (gdbarch, rs6000_unwind_pc);
|
set_gdbarch_unwind_pc (gdbarch, rs6000_unwind_pc);
|
||||||
|
|
Loading…
Reference in a new issue