Add predicate for PUSH_RETURN_ADDRESS.

This commit is contained in:
Andrew Cagney
2001-11-06 18:06:00 +00:00
parent f8deed93c6
commit 69a0d5f4fa
5 changed files with 54 additions and 17 deletions

View File

@@ -678,9 +678,7 @@ verify_gdbarch (struct gdbarch *gdbarch)
if ((GDB_MULTI_ARCH >= 2)
&& (gdbarch->push_dummy_frame == 0))
fprintf_unfiltered (log, "\n\tpush_dummy_frame");
if ((GDB_MULTI_ARCH >= 1)
&& (gdbarch->push_return_address == 0))
fprintf_unfiltered (log, "\n\tpush_return_address");
/* Skip verify of push_return_address, has predicate */
if ((GDB_MULTI_ARCH >= 2)
&& (gdbarch->pop_frame == 0))
fprintf_unfiltered (log, "\n\tpop_frame");
@@ -3489,6 +3487,12 @@ set_gdbarch_push_dummy_frame (struct gdbarch *gdbarch,
gdbarch->push_dummy_frame = push_dummy_frame;
}
int
gdbarch_push_return_address_p (struct gdbarch *gdbarch)
{
return gdbarch->push_return_address != 0;
}
CORE_ADDR
gdbarch_push_return_address (struct gdbarch *gdbarch, CORE_ADDR pc, CORE_ADDR sp)
{