aboutsummaryrefslogtreecommitdiff
path: root/gdb/i386bsd-nat.c
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2004-08-09 20:40:14 +0000
committerMark Kettenis <kettenis@gnu.org>2004-08-09 20:40:14 +0000
commitbbe06c740e70ea5a08cc8f9d25e30400dd9e2419 (patch)
tree3ed721b9fbfdb92dcd2d0a6f90e4c1c08cde882b /gdb/i386bsd-nat.c
parent3aa7b3b32941c176241e0eedd03de3b741d37587 (diff)
downloadgdb-bbe06c740e70ea5a08cc8f9d25e30400dd9e2419.zip
gdb-bbe06c740e70ea5a08cc8f9d25e30400dd9e2419.tar.gz
gdb-bbe06c740e70ea5a08cc8f9d25e30400dd9e2419.tar.bz2
* i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
sigcontext' offset consistency checks for ancient BSD.
Diffstat (limited to 'gdb/i386bsd-nat.c')
-rw-r--r--gdb/i386bsd-nat.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/i386bsd-nat.c b/gdb/i386bsd-nat.c
index 4d663fc..3ab4671 100644
--- a/gdb/i386bsd-nat.c
+++ b/gdb/i386bsd-nat.c
@@ -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 */
}