forked from Imagelibrary/binutils-gdb
Add predicate for PUSH_RETURN_ADDRESS.
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user