aboutsummaryrefslogtreecommitdiff
path: root/gnu/usr.bin/binutils
diff options
context:
space:
mode:
authorGary Jennejohn <gj@FreeBSD.org>1997-03-12 22:34:09 +0000
committerGary Jennejohn <gj@FreeBSD.org>1997-03-12 22:34:09 +0000
commitebab7e8272028420bd6c81256cbfede01045a37f (patch)
tree515ab00698391dc2d7fd6c7d1956f1d7138aeaf7 /gnu/usr.bin/binutils
parent09d5def9cec238d8e626b1d3e72bc1fd8339dcb1 (diff)
Notes
Diffstat (limited to 'gnu/usr.bin/binutils')
-rw-r--r--gnu/usr.bin/binutils/gdb/Makefile4
-rw-r--r--gnu/usr.bin/binutils/gdb/i386/nm.h7
2 files changed, 10 insertions, 1 deletions
diff --git a/gnu/usr.bin/binutils/gdb/Makefile b/gnu/usr.bin/binutils/gdb/Makefile
index 0baf8d252798..c15d809cddd3 100644
--- a/gnu/usr.bin/binutils/gdb/Makefile
+++ b/gnu/usr.bin/binutils/gdb/Makefile
@@ -1,4 +1,4 @@
-# $Id$
+# $Id: Makefile,v 1.17 1997/02/22 15:45:28 peter Exp $
PROG = gdb
@@ -66,4 +66,6 @@ LDADD+= -L${.CURDIR}/../libiberty/ -liberty
DPADD+= ${.CURDIR}/../libiberty/libiberty.a
.endif
+LINKS= ${BINDIR}/${PROG} ${BINDIR}/k${PROG}
+
.include <bsd.prog.mk>
diff --git a/gnu/usr.bin/binutils/gdb/i386/nm.h b/gnu/usr.bin/binutils/gdb/i386/nm.h
index 6affe1ac87b9..b18a21970033 100644
--- a/gnu/usr.bin/binutils/gdb/i386/nm.h
+++ b/gnu/usr.bin/binutils/gdb/i386/nm.h
@@ -115,4 +115,11 @@ extern int kernel_writablecore;
#define DEFAULT_PROMPT kernel_debugging?"(kgdb) ":"(gdb) "
+/* misuse START_PROGRESS to test whether we're running as kgdb */
+/* START_PROGRESS is called at the top of main */
+#undef START_PROGRESS
+#define START_PROGRESS(STR,N) \
+ if (!strcmp(STR, "kgdb")) \
+ kernel_debugging = 1;
+
#endif /* NM_FBSD_H */