aboutsummaryrefslogtreecommitdiff
path: root/gdb/config
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2000-11-08 11:55:34 +0000
committerAndrew Cagney <cagney@redhat.com>2000-11-08 11:55:34 +0000
commitf4281f55cf61201c863196fb56bb39b751c364c5 (patch)
treede670e1351aa2957fb1c550c2d2cde3470aaecd0 /gdb/config
parente4f782955184d356e17544bd7670c1eaeb2f2b29 (diff)
downloadgdb-f4281f55cf61201c863196fb56bb39b751c364c5.zip
gdb-f4281f55cf61201c863196fb56bb39b751c364c5.tar.gz
gdb-f4281f55cf61201c863196fb56bb39b751c364c5.tar.bz2
Rename get_longjmp_target to m68k_get_longjmp_target. Update all m68k
targets.
Diffstat (limited to 'gdb/config')
-rw-r--r--gdb/config/m68k/tm-cisco.h3
-rw-r--r--gdb/config/m68k/tm-es1800.h3
-rw-r--r--gdb/config/m68k/tm-linux.h2
-rw-r--r--gdb/config/m68k/tm-m68k.h7
-rw-r--r--gdb/config/m68k/tm-m68kv4.h3
-rw-r--r--gdb/config/m68k/tm-sun3.h3
-rw-r--r--gdb/config/m68k/tm-vx68.h3
7 files changed, 13 insertions, 11 deletions
diff --git a/gdb/config/m68k/tm-cisco.h b/gdb/config/m68k/tm-cisco.h
index e27432d..80eee53b7 100644
--- a/gdb/config/m68k/tm-cisco.h
+++ b/gdb/config/m68k/tm-cisco.h
@@ -47,8 +47,7 @@
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. */
diff --git a/gdb/config/m68k/tm-es1800.h b/gdb/config/m68k/tm-es1800.h
index b6f1588..602e73b 100644
--- a/gdb/config/m68k/tm-es1800.h
+++ b/gdb/config/m68k/tm-es1800.h
@@ -56,5 +56,4 @@
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)
diff --git a/gdb/config/m68k/tm-linux.h b/gdb/config/m68k/tm-linux.h
index 1d47d46..fbb30a7 100644
--- a/gdb/config/m68k/tm-linux.h
+++ b/gdb/config/m68k/tm-linux.h
@@ -93,7 +93,7 @@
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
diff --git a/gdb/config/m68k/tm-m68k.h b/gdb/config/m68k/tm-m68k.h
index 38068c6..2623446 100644
--- a/gdb/config/m68k/tm-m68k.h
+++ b/gdb/config/m68k/tm-m68k.h
@@ -386,3 +386,10 @@ extern void m68k_pop_frame (void);
#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 *);
diff --git a/gdb/config/m68k/tm-m68kv4.h b/gdb/config/m68k/tm-m68kv4.h
index 8f6f15e..6763135 100644
--- a/gdb/config/m68k/tm-m68kv4.h
+++ b/gdb/config/m68k/tm-m68kv4.h
@@ -64,8 +64,7 @@
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)
diff --git a/gdb/config/m68k/tm-sun3.h b/gdb/config/m68k/tm-sun3.h
index 0c8651a..0307852 100644
--- a/gdb/config/m68k/tm-sun3.h
+++ b/gdb/config/m68k/tm-sun3.h
@@ -74,8 +74,7 @@
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
diff --git a/gdb/config/m68k/tm-vx68.h b/gdb/config/m68k/tm-vx68.h
index 9ce812d..53950f1 100644
--- a/gdb/config/m68k/tm-vx68.h
+++ b/gdb/config/m68k/tm-vx68.h
@@ -76,8 +76,7 @@
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. */