This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[PATCH] i386bsd-nat.c tweak
- From: Mark Kettenis <kettenis at chello dot nl>
- To: gdb-patches at sources dot redhat dot com
- Date: Mon, 9 Aug 2004 22:48:25 +0200 (CEST)
- Subject: [PATCH] i386bsd-nat.c tweak
This removes the consistency checks for really old BSDs. We don't
really support those and it hurts GNU/k*BSD.
Committed.
Index: ChangeLog
from Mark Kettenis <kettenis@gnu.org>
* i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
sigcontext' offset consistency checks for ancient BSD.
Index: i386bsd-nat.c
===================================================================
RCS file: /cvs/src/src/gdb/i386bsd-nat.c,v
retrieving revision 1.29
diff -u -p -r1.29 i386bsd-nat.c
--- i386bsd-nat.c 31 May 2004 11:20:41 -0000 1.29
+++ i386bsd-nat.c 9 Aug 2004 20:31:18 -0000
@@ -357,10 +357,10 @@ _initialize_i386bsd_nat (void)
#define SC_REG_OFFSET i386nbsd_sc_reg_offset
#elif defined (OpenBSD)
#define SC_REG_OFFSET i386obsd_sc_reg_offset
-#else
-#define SC_REG_OFFSET i386bsd_sc_reg_offset
#endif
+#ifdef SC_REG_OFFSET
+
/* We only check the program counter, stack pointer and frame
pointer since these members of `struct sigcontext' are essential
for providing backtraces. More checks could be added, but would
@@ -410,4 +410,6 @@ Please report this to <bug-gdb@gnu.org>.
}
SC_FP_OFFSET = offset;
+
+#endif /* SC_REG_OFFSET */
}