From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 46406 invoked by alias); 4 Sep 2017 20:04:37 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 46395 invoked by uid 89); 4 Sep 2017 20:04:37 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-24.7 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy=Hx-languages-length:1637 X-HELO: mx.sdf.org Received: from mx.sdf.org (HELO mx.sdf.org) (205.166.94.20) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 04 Sep 2017 20:04:32 +0000 Received: from sdf.org (IDENT:coypu@sdf.lonestar.org [205.166.94.15]) by mx.sdf.org (8.15.2/8.14.5) with ESMTPS id v84K4GbS011705 (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256 bits) verified NO); Mon, 4 Sep 2017 20:04:16 GMT Received: (from coypu@localhost) by sdf.org (8.15.2/8.12.8/Submit) id v84K4Gax008057; Mon, 4 Sep 2017 20:04:16 GMT Date: Mon, 04 Sep 2017 20:04:00 -0000 From: coypu@sdf.org To: John Baldwin Cc: Pedro Alves , gdb-patches@sourceware.org Subject: Re: [PATCH v2 0/2] Various build fixes for NetBSD Message-ID: <20170904200416.GA5610@SDF.ORG> References: <20170725165051.9132-1-jhb@FreeBSD.org> <4e0601ae-32eb-9e6a-1a64-df588e58a2c2@redhat.com> <1618758.R810WcpHCu@ralph.baldwin.cx> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="gBBFr7Ir9EOA20Yy" Content-Disposition: inline In-Reply-To: <1618758.R810WcpHCu@ralph.baldwin.cx> User-Agent: Mutt/1.8.3 (2017-05-23) X-SW-Source: 2017-09/txt/msg00067.txt.bz2 --gBBFr7Ir9EOA20Yy Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-length: 152 Hi, I've needed amendments to patch #3, and an additional patch. The additional patch is needed as kamil had removed sys/user.h in netbsd. Thank you. --gBBFr7Ir9EOA20Yy Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="0001-Use-existing-configure-test-to-guard-inclusion-of-sy.patch" Content-length: 588 >From 147b605f040889110fc47bf6b9d2b00af7317958 Mon Sep 17 00:00:00 2001 From: coypu Date: Mon, 4 Sep 2017 22:59:17 +0300 Subject: [PATCH 1/2] Use existing configure test to guard inclusion of sys/user.h --- gdb/bsd-kvm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gdb/bsd-kvm.c b/gdb/bsd-kvm.c index f872fc084..67f7e5113 100644 --- a/gdb/bsd-kvm.c +++ b/gdb/bsd-kvm.c @@ -37,7 +37,9 @@ #include "readline/readline.h" #include #include +#ifdef HAVE_SYS_USER_H #include +#endif #include "bsd-kvm.h" -- 2.14.1 --gBBFr7Ir9EOA20Yy Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="0002-configure.nat-Add-bsd-kvm.o-x86-nat.o-x86-dregs.o.patch" Content-length: 891 >From 426613ab4883d2edae286a7635298f217bb031c8 Mon Sep 17 00:00:00 2001 From: coypu Date: Mon, 4 Sep 2017 23:00:00 +0300 Subject: [PATCH 2/2] configure.nat: Add "bsd-kvm.o x86-nat.o x86-dregs.o" and "-lkvm" for NetBSD/amd64 --- gdb/configure.nat | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gdb/configure.nat b/gdb/configure.nat index b32c9aa84..36c48b10f 100644 --- a/gdb/configure.nat +++ b/gdb/configure.nat @@ -338,8 +338,10 @@ case ${gdb_host} in case ${gdb_host_cpu} in i386) # Host: NetBSD/amd64 - NATDEPFILES="${NATDEPFILES} nbsd-nat.o amd64-nat.o \ - x86-bsd-nat.o amd64-bsd-nat.o amd64-nbsd-nat.o" + NATDEPFILES="${NATDEPFILES} nbsd-nat.o amd64-nat.o x86-nat.o \ + x86-bsd-nat.o amd64-bsd-nat.o amd64-nbsd-nat.o bsd-kvm.o \ + x86-dregs.o" + LOADLIBES='-lkvm' ;; sparc) # Host: NetBSD/sparc64 -- 2.14.1 --gBBFr7Ir9EOA20Yy--