is defined.
* sparc-tdep.c (get_longjmp_target): Likewise.
+2002-02-20 Richard Earnshaw <rearnsha@arm.com>
+
+ * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
+ is defined.
+ * sparc-tdep.c (get_longjmp_target): Likewise.
+
2002-02-20 Richard Earnshaw <rearnsha@arm.com>
* News: Add news about ARM and Multi-arch. Mention the new target
}
}
\f
-#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.
#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