targets.
+Wed Nov 8 22:46:43 2000 Andrew Cagney <cagney@b1.cygnus.com>
+
+ * m68k-tdep.c (m68k_get_longjmp_target): Rename function
+ get_longjmp_target. Remove wrapping #ifdef GET_LONGJMP_TARGET.
+ * config/m68k/tm-m68k.h (m68k_get_longjmp_target): Add function
+ declaration.
+
+ * config/m68k/tm-vx68.h, config/m68k/tm-sun3.h,
+ config/m68k/tm-m68kv4.h, config/m68k/tm-linux.h,
+ config/m68k/tm-es1800.h, config/m68k/tm-cisco.h: Update definition
+ of GET_LONGJMP_TARGET. Delete get_longjmp_target function
+ declaratation.
+
Wed Nov 8 15:32:23 2000 Andrew Cagney <cagney@b1.cygnus.com>
* gdbserver/configure.in (files): Don't link nm-empty.h when a
we extract the pc (JB_PC) that we will land at. The pc is copied into ADDR.
This routine returns true on success */
-#define GET_LONGJMP_TARGET(ADDR) get_longjmp_target(ADDR)
-extern int get_longjmp_target (CORE_ADDR *);
+#define GET_LONGJMP_TARGET(ADDR) m68k_get_longjmp_target(ADDR)
/* BFD handles finding the registers in the core file, so they are at
the start of the BFD .reg section. */
we extract the pc (JB_PC) that we will land at. The pc is copied into ADDR.
This routine returns true on success */
-#define GET_LONGJMP_TARGET(ADDR) get_longjmp_target(ADDR)
-extern int get_longjmp_target (CORE_ADDR *);
+#define GET_LONGJMP_TARGET(ADDR) m68k_get_longjmp_target(ADDR)
we extract the pc (JB_PC) that we will land at. The pc is copied into ADDR.
This routine returns true on success */
-#define GET_LONGJMP_TARGET(ADDR) get_longjmp_target(ADDR)
+#define GET_LONGJMP_TARGET(ADDR) m68k_get_longjmp_target(ADDR)
/* Offset to saved PC in sigcontext, from <asm/sigcontext.h>. */
#define SIGCONTEXT_PC_OFFSET 26
#define SP_ARG0 (1 * 4)
#define TARGET_M68K
+
+/* 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 ADDR.
+ This routine returns true on success */
+
+extern int m68k_get_longjmp_target (CORE_ADDR *);
we extract the pc (JB_PC) that we will land at. The pc is copied into ADDR.
This routine returns true on success */
-#define GET_LONGJMP_TARGET(ADDR) get_longjmp_target(ADDR)
-extern int get_longjmp_target (CORE_ADDR *);
+#define GET_LONGJMP_TARGET(ADDR) m68k_get_longjmp_target(ADDR)
/* Convert a DWARF register number to a gdb REGNUM. */
#define DWARF_REG_TO_REGNUM(num) ((num) < 16 ? (num) : (num)+FP0_REGNUM-16)
we extract the pc (JB_PC) that we will land at. The pc is copied into ADDR.
This routine returns true on success */
-#define GET_LONGJMP_TARGET(ADDR) get_longjmp_target(ADDR)
-extern int get_longjmp_target (CORE_ADDR *);
+#define GET_LONGJMP_TARGET(ADDR) m68k_get_longjmp_target(ADDR)
/* If sun3 pcc says that a parameter is a short, it's a short. */
#define BELIEVE_PCC_PROMOTION_TYPE
we extract the pc (JB_PC) that we will land at. The pc is copied into ADDR.
This routine returns true on success */
-#define GET_LONGJMP_TARGET(ADDR) get_longjmp_target(ADDR)
-extern int get_longjmp_target (CORE_ADDR *);
+#define GET_LONGJMP_TARGET(ADDR) m68k_get_longjmp_target(ADDR)
/* Number of registers in a ptrace_getregs call. */
#endif /* USE_PROC_FS */
-#ifdef GET_LONGJMP_TARGET
/* 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.
This routine returns true on success. */
int
-get_longjmp_target (CORE_ADDR *pc)
+m68k_get_longjmp_target (CORE_ADDR *pc)
{
char *buf;
CORE_ADDR sp, jb_addr;
return 1;
}
-#endif /* GET_LONGJMP_TARGET */
/* Immediately after a function call, return the saved pc before the frame
is setup. For sun3's, we check for the common case of being inside of a