From 8aa16b78d80fc1ad1e252d8b712c828444a60be4 Mon Sep 17 00:00:00 2001
From: Kevin Buettner <kevinb@redhat.com>
Date: Mon, 19 Mar 2001 05:15:32 +0000
Subject: [PATCH] Fix NetBSD 1.4 build problem.

---
 gdb/ChangeLog           |  5 +++++
 gdb/config/i386/nbsd.mh | 11 +++++++++--
 2 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 76cf356669d..2191c2955cb 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2001-03-18  Kevin Buettner  <kevinb@redhat.com>
+
+	* config/i386/nbsd.mh (NATDEPFILES): List all files on the same
+	line to avoid build problem on NetBSD 1.4.
+
 2001-03-17  Michael Chastain  <chastain@redhat.com>
 
 	* win32-nat.c (child_attach): check args for NULL before passing
diff --git a/gdb/config/i386/nbsd.mh b/gdb/config/i386/nbsd.mh
index f059608b373..a9c07f4b7ab 100644
--- a/gdb/config/i386/nbsd.mh
+++ b/gdb/config/i386/nbsd.mh
@@ -1,6 +1,13 @@
 # Host: Intel 386 running NetBSD
 XDEPFILES=
-NATDEPFILES= fork-child.o infptrace.o inftarg.o corelow.o i386nbsd-nat.o \
-	solib.o solib-svr4.o solib-legacy.o
+
+# NATDEPFILES must remain entirely on one line for *BSD.  When
+# building a cross debugger, configure will cause this line to be
+# commented out in the Makefile.  BSD make doesn't permit the use of a
+# continuation character (backslash) to extend a commented line.  As a
+# consequence, BSD make considers subsequent tab-indented lines to be
+# "unassociated shell commands".
+NATDEPFILES= fork-child.o infptrace.o inftarg.o corelow.o i386nbsd-nat.o solib.o solib-svr4.o solib-legacy.o
+
 XM_FILE= xm-nbsd.h
 NAT_FILE= nm-nbsd.h