diff options
author | Andrew Cagney <cagney@redhat.com> | 2003-09-09 03:58:18 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2003-09-09 03:58:18 +0000 |
commit | d4019662a586dbf4da3e237c6874033b91f36099 (patch) | |
tree | 0469b498e20a1659b12d11ae77ea21f3a3d7fcba /gdb/blockframe.c | |
parent | 9dd95543f402606e40ad473d03245f40e08bc58d (diff) | |
download | gdb-d4019662a586dbf4da3e237c6874033b91f36099.tar.gz |
2003-09-08 Andrew Cagney <cagney@redhat.com>
* gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
CALL_DUMMY_ADDRESS, change to a predicate.
* gdbarch.h, gdbarch.c: Re-generate.
* blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
* infcall.c (call_function_by_hand): Ditto.
* sparc-tdep.c (sparc_push_return_address): Ditto.
(sparc_gdbarch_init): Set deprecated_call_dummy_address.
* xstormy16-tdep.c (xstormy16_push_return_address): Replace
CALL_DUMMY_ADDRESS with entry_point_address.
* v850-tdep.c (v850_push_return_address): Ditto.
* s390-tdep.c (s390_push_return_address): Ditto.
* rs6000-tdep.c (ppc_push_return_address): Ditto.
* mn10300-tdep.c (mn10300_push_return_address): Ditto.
* mcore-tdep.c (mcore_push_return_address): Ditto.
* cris-tdep.c (cris_push_return_address): Ditto.
* arm-tdep.c (arm_push_return_address): Ditto.
Diffstat (limited to 'gdb/blockframe.c')
-rw-r--r-- | gdb/blockframe.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/blockframe.c b/gdb/blockframe.c index 4e689ac644b..f431b50a787 100644 --- a/gdb/blockframe.c +++ b/gdb/blockframe.c @@ -570,8 +570,10 @@ int deprecated_pc_in_call_dummy_at_entry_point (CORE_ADDR pc, CORE_ADDR sp, CORE_ADDR frame_address) { - return ((pc) >= CALL_DUMMY_ADDRESS () - && (pc) <= (CALL_DUMMY_ADDRESS () + DECR_PC_AFTER_BREAK)); + CORE_ADDR addr = entry_point_address (); + if (DEPRECATED_CALL_DUMMY_ADDRESS_P ()) + addr = DEPRECATED_CALL_DUMMY_ADDRESS (); + return ((pc) >= addr && (pc) <= (addr + DECR_PC_AFTER_BREAK)); } /* Returns true for a user frame or a call_function_by_hand dummy |