aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbarch.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2001-11-06 18:06:00 +0000
committerAndrew Cagney <cagney@redhat.com>2001-11-06 18:06:00 +0000
commit69a0d5f4faf69df010fda32619a31359d4bedf04 (patch)
treedf68e564237bc70eafdecf94786c3548605306e9 /gdb/gdbarch.c
parentf8deed93c68458a446ff52314e008c910e26a1a5 (diff)
downloadgdb-69a0d5f4faf69df010fda32619a31359d4bedf04.zip
gdb-69a0d5f4faf69df010fda32619a31359d4bedf04.tar.gz
gdb-69a0d5f4faf69df010fda32619a31359d4bedf04.tar.bz2
Add predicate for PUSH_RETURN_ADDRESS.
Diffstat (limited to 'gdb/gdbarch.c')
-rw-r--r--gdb/gdbarch.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/gdb/gdbarch.c b/gdb/gdbarch.c
index 94cac02..d2a7928 100644
--- a/gdb/gdbarch.c
+++ b/gdb/gdbarch.c
@@ -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)
{