aboutsummaryrefslogtreecommitdiff
path: root/gdb/sparc-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
commita48442a0505c9d0dd748314642381a7e49949a73 (patch)
tree73ef6303917819187e01296c2a11246326d0f7b9 /gdb/sparc-tdep.c
parentfe419ffc23684a0e4cec7c7808978168871e2928 (diff)
downloadgdb-a48442a0505c9d0dd748314642381a7e49949a73.zip
gdb-a48442a0505c9d0dd748314642381a7e49949a73.tar.gz
gdb-a48442a0505c9d0dd748314642381a7e49949a73.tar.bz2
* 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/sparc-tdep.c')
-rw-r--r--gdb/sparc-tdep.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/sparc-tdep.c b/gdb/sparc-tdep.c
index 1b7954b..b2380b4 100644
--- a/gdb/sparc-tdep.c
+++ b/gdb/sparc-tdep.c
@@ -1686,8 +1686,9 @@ fill_fpregset (gdb_fpregset_t *fpregsetp, int regno)
#endif /* USE_PROC_FS */
-
-#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. We expect that we have just entered
longjmp and haven't yet setup the stack frame, so the args are still in the