aboutsummaryrefslogtreecommitdiff
path: root/gdb/infcall.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2004-05-08 22:19:30 +0000
committerAndrew Cagney <cagney@redhat.com>2004-05-08 22:19:30 +0000
commit1ac839b8ccd88fb376204225b0912678140653b5 (patch)
tree4070e07335a21d72d1ab45b8d73c30303f580045 /gdb/infcall.c
parente21059f29c98c8cfb6277265bee42e3bbb707337 (diff)
downloadgdb-1ac839b8ccd88fb376204225b0912678140653b5.zip
gdb-1ac839b8ccd88fb376204225b0912678140653b5.tar.gz
gdb-1ac839b8ccd88fb376204225b0912678140653b5.tar.bz2
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.
Diffstat (limited to 'gdb/infcall.c')
-rw-r--r--gdb/infcall.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/gdb/infcall.c b/gdb/infcall.c
index 4985884..0f0ffc9 100644
--- a/gdb/infcall.c
+++ b/gdb/infcall.c
@@ -721,15 +721,13 @@ You must use a pointer to function type variable. Command ignored.", arg_name);
if (DEPRECATED_DUMMY_WRITE_SP_P ())
DEPRECATED_DUMMY_WRITE_SP (sp);
- if (gdbarch_unwind_dummy_id_p (current_gdbarch))
- {
- /* 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 ())
+ if (DEPRECATED_SAVE_DUMMY_FRAME_TOS_P ())
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. */
clear_proceed_status ();