diff mbox

[3/4] Enable the BSD KVM target for NetBSD/amd64.

Message ID 20170715172021.80516-4-jhb@FreeBSD.org
State New
Headers show

Commit Message

John Baldwin July 15, 2017, 5:20 p.m. UTC
gdb/ChangeLog:

	* configure.nat: Add "bsd-kvm.o" and "-lkvm" for NetBSD/amd64.
---
 gdb/ChangeLog     | 4 ++++
 gdb/configure.nat | 3 ++-
 2 files changed, 6 insertions(+), 1 deletion(-)
diff mbox

Patch

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 156741e1ba..b6a1960d43 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,9 @@ 
 2017-07-15  John Baldwin  <jhb@FreeBSD.org>
 
+	* configure.nat: Add "bsd-kvm.o" and "-lkvm" for NetBSD/amd64.
+
+2017-07-15  John Baldwin  <jhb@FreeBSD.org>
+
 	* bsd-kvm.o: Define _KMEMUSER.
 	* configure.ac: Define _KMEMUSER when checking for "struct lwp".
 	* configure: Regenerate.
diff --git a/gdb/configure.nat b/gdb/configure.nat
index b32c9aa849..3c34dc6fc1 100644
--- a/gdb/configure.nat
+++ b/gdb/configure.nat
@@ -339,7 +339,8 @@  case ${gdb_host} 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"
+		x86-bsd-nat.o amd64-bsd-nat.o amd64-nbsd-nat.o bsd-kvm.o"
+		LOADLIBES='-lkvm'
 		;;
 	    sparc)
 		# Host: NetBSD/sparc64