Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: coypu@sdf.org
To: John Baldwin <jhb@freebsd.org>
Cc: Pedro Alves <palves@redhat.com>, gdb-patches@sourceware.org
Subject: Re: [PATCH v2 0/2] Various build fixes for NetBSD
Date: Mon, 04 Sep 2017 20:04:00 -0000	[thread overview]
Message-ID: <20170904200416.GA5610@SDF.ORG> (raw)
In-Reply-To: <1618758.R810WcpHCu@ralph.baldwin.cx>

[-- Attachment #1: Type: text/plain, Size: 152 bytes --]

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.

[-- Attachment #2: 0001-Use-existing-configure-test-to-guard-inclusion-of-sy.patch --]
[-- Type: text/plain, Size: 587 bytes --]

From 147b605f040889110fc47bf6b9d2b00af7317958 Mon Sep 17 00:00:00 2001
From: coypu <coypu@sdf.org>
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 <sys/param.h>
 #include <sys/proc.h>
+#ifdef HAVE_SYS_USER_H
 #include <sys/user.h>
+#endif
 
 #include "bsd-kvm.h"
 
-- 
2.14.1


[-- Attachment #3: 0002-configure.nat-Add-bsd-kvm.o-x86-nat.o-x86-dregs.o.patch --]
[-- Type: text/plain, Size: 890 bytes --]

From 426613ab4883d2edae286a7635298f217bb031c8 Mon Sep 17 00:00:00 2001
From: coypu <coypu@sdf.org>
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


  reply	other threads:[~2017-09-04 20:04 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-25 16:51 John Baldwin
2017-07-25 16:51 ` [PATCH v2 2/2] Enable support for x86 debug registers on NetBSD John Baldwin
2017-07-25 16:51 ` [PATCH v2 1/2] Define _KMEMUSER before including BSD kernel headers John Baldwin
2017-09-04 12:50 ` [PATCH v2 0/2] Various build fixes for NetBSD Pedro Alves
2017-09-04 13:03   ` Kamil Rytarowski
2017-09-04 14:01     ` Pedro Alves
2017-09-04 14:34       ` Kamil Rytarowski
2017-09-04 17:08         ` John Baldwin
2017-09-04 13:27   ` John Baldwin
2017-09-04 20:04     ` coypu [this message]
2017-09-04 22:18       ` John Baldwin

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=20170904200416.GA5610@SDF.ORG \
    --to=coypu@sdf.org \
    --cc=gdb-patches@sourceware.org \
    --cc=jhb@freebsd.org \
    --cc=palves@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