diff options
author | Andrew Cagney <cagney@redhat.com> | 2004-05-08 19:03:05 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2004-05-08 19:03:05 +0000 |
commit | 7a8829053b26d5ad89e4bb67b4e0f687512721ab (patch) | |
tree | 287d9169bca17121446417eaffc9d35fa63162bf /gdb/infcall.c | |
parent | 0ec5872bdad469f03bcca1a591ca69c6806b6974 (diff) | |
download | gdb-7a8829053b26d5ad89e4bb67b4e0f687512721ab.zip gdb-7a8829053b26d5ad89e4bb67b4e0f687512721ab.tar.gz gdb-7a8829053b26d5ad89e4bb67b4e0f687512721ab.tar.bz2 |
2004-05-08 Andrew Cagney <cagney@redhat.com>
* gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
* gdbarch.h, gdbarch.c: Re-generate.
* blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
* infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
* frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
Diffstat (limited to 'gdb/infcall.c')
-rw-r--r-- | gdb/infcall.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/gdb/infcall.c b/gdb/infcall.c index 41aad92..1982c96 100644 --- a/gdb/infcall.c +++ b/gdb/infcall.c @@ -292,8 +292,7 @@ legacy_push_dummy_code (struct gdbarch *gdbarch, dummy_addr. Ulgh! Blame the HP/UX target. */ (*real_pc) += DEPRECATED_CALL_DUMMY_START_OFFSET; write_memory (start_sp, (char *) dummy1, sizeof_dummy1); - if (DEPRECATED_USE_GENERIC_DUMMY_FRAMES) - generic_save_call_dummy_addr (start_sp, start_sp + sizeof_dummy1); + generic_save_call_dummy_addr (start_sp, start_sp + sizeof_dummy1); return sp; } @@ -596,10 +595,9 @@ call_function_by_hand (struct value *function, int nargs, struct value **args) internal_error (__FILE__, __LINE__, "bad switch"); } - if (DEPRECATED_USE_GENERIC_DUMMY_FRAMES) - /* Save where the breakpoint is going to be inserted so that the - dummy-frame code is later able to re-identify it. */ - generic_save_call_dummy_addr (bp_addr, bp_addr + 1); + /* Save where the breakpoint is going to be inserted so that the + dummy-frame code is later able to re-identify it. */ + generic_save_call_dummy_addr (bp_addr, bp_addr + 1); if (nargs < TYPE_NFIELDS (ftype)) error ("too few arguments in function call"); @@ -833,7 +831,6 @@ You must use a pointer to function type variable. Command ignored.", arg_name); /* 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. */ - gdb_assert (DEPRECATED_USE_GENERIC_DUMMY_FRAMES); generic_save_dummy_frame_tos (sp); } else if (DEPRECATED_SAVE_DUMMY_FRAME_TOS_P ()) @@ -861,7 +858,6 @@ You must use a pointer to function type variable. Command ignored.", arg_name); /* 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. */ - gdb_assert (DEPRECATED_USE_GENERIC_DUMMY_FRAMES); frame = frame_id_build (sp, sal.pc); } else |