From: Mark Kettenis <kettenis@chello.nl>
To: gdb-patches@sources.redhat.com
Subject: [PATCH] i386bsd-nat.c tweak
Date: Mon, 09 Aug 2004 20:48:00 -0000 [thread overview]
Message-ID: <200408092048.i79KmP7c058727@elgar.kettenis.dyndns.org> (raw)
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 */
}
next reply other threads:[~2004-08-09 20:48 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-08-09 20:48 Mark Kettenis [this message]
2004-08-09 22:44 ` Robert Millan
2004-08-12 8:55 ` Mark Kettenis
2004-08-12 9:39 ` Robert Millan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200408092048.i79KmP7c058727@elgar.kettenis.dyndns.org \
--to=kettenis@chello.nl \
--cc=gdb-patches@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox