diff options
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 4e689ac6..f431b50 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 |