From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22871 invoked by alias); 9 Aug 2004 06:59:29 -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 22854 invoked from network); 9 Aug 2004 06:59:27 -0000 Received: from unknown (HELO walton.kettenis.dyndns.org) (213.93.77.109) by sourceware.org with SMTP; 9 Aug 2004 06:59: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 i796xMXQ000309; Mon, 9 Aug 2004 08:59:22 +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 i796xLAm000510; Mon, 9 Aug 2004 08:59:21 +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 i796xKMs000507; Mon, 9 Aug 2004 08:59:20 +0200 (CEST) Date: Mon, 09 Aug 2004 06:59:00 -0000 Message-Id: <200408090659.i796xKMs000507@elgar.kettenis.dyndns.org> From: Mark Kettenis To: rmh@debian.org CC: gdb-patches@sources.redhat.com, glibc-bsd-hackers@nongnu.org In-reply-to: <20040807022015.GA11745@khazad.dyndns.org> (message from Robert Millan on Sat, 7 Aug 2004 04:20:15 +0200) Subject: Re: [PATCH] GNU/k*BSD fixes [w/ChangeLog] References: <20040807022015.GA11745@khazad.dyndns.org> X-SW-Source: 2004-08/txt/msg00296.txt.bz2 Date: Sat, 7 Aug 2004 04:20:15 +0200 From: Robert Millan Hi! Please could someone apply the attached patch? Entry for gdb/ChangeLog follows: 2004-08-07 Robert Millan * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu. * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu. * bsd-kvm.c: Check for nlist.h before including it. * i386bsd-nat.c: Match kernel of FreeBSD also with __FreeBSD_kernel__ and __FreeBSD_kernel_version macros. Yuck, the #ifdef mess in i386bsd-nat.c gets ugly. I think it should be simplified. You're probably changing it to avoid the warning about the offsets in `struct sigcontext'. If I just drop the support for ancient BSD (which isn't used anyway) we can avoid that. You won't get the extra check on GNU/kFreeBSD then, but as long as enough people use GDB on normal FreeBSD/i386, this doesn't really matter. Considering the changes to bsd-kvm.c. We shouldn't include config.h directly. In GDB "defs.h" does that for us. I assume that GNU/k*BSD still has libkvm. Why doesn't it have ? If not, then where does it get its `struct nlist' from? Mark