From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12736 invoked by alias); 9 Aug 2004 20:48:28 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 12727 invoked from network); 9 Aug 2004 20:48:27 -0000 Received: from unknown (HELO walton.kettenis.dyndns.org) (213.93.77.109) by sourceware.org with SMTP; 9 Aug 2004 20:48:27 -0000 Received: from elgar.kettenis.dyndns.org (elgar.kettenis.dyndns.org [192.168.0.2]) by walton.kettenis.dyndns.org (8.12.6p3/8.12.6) with ESMTP id i79KmQZt001022 for ; Mon, 9 Aug 2004 22:48:26 +0200 (CEST) (envelope-from kettenis@elgar.kettenis.dyndns.org) Received: from elgar.kettenis.dyndns.org (localhost [127.0.0.1]) by elgar.kettenis.dyndns.org (8.12.6p3/8.12.6) with ESMTP id i79KmPmT058730 for ; Mon, 9 Aug 2004 22:48:25 +0200 (CEST) (envelope-from kettenis@elgar.kettenis.dyndns.org) Received: (from kettenis@localhost) by elgar.kettenis.dyndns.org (8.12.6p3/8.12.6/Submit) id i79KmP7c058727; Mon, 9 Aug 2004 22:48:25 +0200 (CEST) Date: Mon, 09 Aug 2004 20:48:00 -0000 Message-Id: <200408092048.i79KmP7c058727@elgar.kettenis.dyndns.org> From: Mark Kettenis To: gdb-patches@sources.redhat.com Subject: [PATCH] i386bsd-nat.c tweak X-SW-Source: 2004-08/txt/msg00337.txt.bz2 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 * 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 . } SC_FP_OFFSET = offset; + +#endif /* SC_REG_OFFSET */ }