summaryrefslogtreecommitdiff
path: root/gdb/arc-tdep.c
diff options
context:
space:
mode:
authorRichard Earnshaw <richard.earnshaw@arm.com>2002-02-20 10:42:59 +0000
committerRichard Earnshaw <richard.earnshaw@arm.com>2002-02-20 10:42:59 +0000
commitf33e11e7aacf244f8775439a11104e2e078e62c3 (patch)
treeee46e3f9bba7a50a6b3437057ceb92dd9282cfac /gdb/arc-tdep.c
parentf6b8172ee88294ffcf75208bd60153cbec193014 (diff)
downloadgdb-f33e11e7aacf244f8775439a11104e2e078e62c3.tar.gz
* arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
is defined. * sparc-tdep.c (get_longjmp_target): Likewise.
Diffstat (limited to 'gdb/arc-tdep.c')
-rw-r--r--gdb/arc-tdep.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/arc-tdep.c b/gdb/arc-tdep.c
index 10a1bc11b6c..ffa538f6da2 100644
--- a/gdb/arc-tdep.c
+++ b/gdb/arc-tdep.c
@@ -571,7 +571,9 @@ arc_software_single_step (enum target_signal ignore, /* sig but we don't need it
}
}
-#ifdef GET_LONGJMP_TARGET
+/* Because of Multi-arch, GET_LONGJMP_TARGET is always defined. So test
+ for a definition of JB_PC. */
+#ifdef JB_PC
/* Figure out where the longjmp will land. Slurp the args out of the stack.
We expect the first arg to be a pointer to the jmp_buf structure from which
we extract the pc (JB_PC) that we will land at. The pc is copied into PC.