From bbe06c740e70ea5a08cc8f9d25e30400dd9e2419 Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Mon, 9 Aug 2004 20:40:14 +0000 Subject: [PATCH] * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct sigcontext' offset consistency checks for ancient BSD. --- gdb/ChangeLog | 3 +++ gdb/i386bsd-nat.c | 6 ++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index f63ea24604..6bd04abd3c 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,8 @@ 2004-08-09 Mark Kettenis + * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct + sigcontext' offset consistency checks for ancient BSD. + * gdb_curses.h [HAVE_CURSESX_H]: Include * configure.in: Check for . Check return and diff --git a/gdb/i386bsd-nat.c b/gdb/i386bsd-nat.c index 4d663fc74c..3ab4671dc7 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 .", } SC_FP_OFFSET = offset; + +#endif /* SC_REG_OFFSET */ } -- 2.34.1