aboutsummaryrefslogtreecommitdiff
path: root/gdb/i386-tdep.c
diff options
context:
space:
mode:
authorPierre Muller <muller@sourceware.org>2002-02-19 08:44:29 +0000
committerPierre Muller <muller@sourceware.org>2002-02-19 08:44:29 +0000
commite41e6bbfeb1fb4c8d5ab4764ae7b9fb3d308b70a (patch)
treee9ff72be78bfdc6a4d6425e6615ac9c546680f5b /gdb/i386-tdep.c
parentc5d00cc701597d8df13e92ddc7edd5589d871753 (diff)
downloadgdb-e41e6bbfeb1fb4c8d5ab4764ae7b9fb3d308b70a.zip
gdb-e41e6bbfeb1fb4c8d5ab4764ae7b9fb3d308b70a.tar.gz
gdb-e41e6bbfeb1fb4c8d5ab4764ae7b9fb3d308b70a.tar.bz2
* i386-tdep.c (get_longjmp_target): Fix compilation failure
by setting dummy values to JB_PC and JB_ELEMENT_SIZE if not defined.
Diffstat (limited to 'gdb/i386-tdep.c')
-rw-r--r--gdb/i386-tdep.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/gdb/i386-tdep.c b/gdb/i386-tdep.c
index 31ecb76..946838b 100644
--- a/gdb/i386-tdep.c
+++ b/gdb/i386-tdep.c
@@ -839,6 +839,16 @@ i386_pop_frame (void)
#ifdef GET_LONGJMP_TARGET
+/* FIXME: Multi-arching does not set JB_PC and JB_ELEMENT_SIZE yet.
+ Fill in with dummy value to enable compilation. */
+#ifndef JB_PC
+#define JB_PC 0
+#endif /* JB_PC */
+
+#ifndef JB_ELEMENT_SIZE
+#define JB_ELEMENT_SIZE 4
+#endif /* JB_ELEMENT_SIZE */
+
/* 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