* arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
authorRichard Earnshaw <richard.earnshaw@arm.com>
Wed, 20 Feb 2002 10:42:59 +0000 (10:42 +0000)
committerRichard Earnshaw <richard.earnshaw@arm.com>
Wed, 20 Feb 2002 10:42:59 +0000 (10:42 +0000)
is defined.
* sparc-tdep.c (get_longjmp_target): Likewise.

gdb/ChangeLog
gdb/arc-tdep.c
gdb/sparc-tdep.c

index 82c4898f6a2aa05b1612112206622488085920ff..9b2982c5c05bdea30553acaa4289bb371e3210b5 100644 (file)
@@ -1,3 +1,9 @@
+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
index 10a1bc11b6c90dd917c30b3a3289c53b24b3f989..ffa538f6da2ceb503d89be2b244db6e70077e048 100644 (file)
@@ -571,7 +571,9 @@ arc_software_single_step (enum target_signal ignore,        /* sig but we don't need it
     }
 }
 \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.
index 1b7954b2da7bcbe40f4c4d38a524fbdf6164f1ee..b2380b4f1354096b628dfae24ad470348d521f07 100644 (file)
@@ -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
This page took 0.031483 seconds and 4 git commands to generate.