summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--gnu/usr.bin/binutils/gdb/Makefile4
-rw-r--r--gnu/usr.bin/binutils/gdb/i386/nm.h7
-rw-r--r--gnu/usr.bin/gdb/gdb/Makefile4
-rw-r--r--gnu/usr.bin/gdb/gdb/nm.h7
4 files changed, 20 insertions, 2 deletions
diff --git a/gnu/usr.bin/binutils/gdb/Makefile b/gnu/usr.bin/binutils/gdb/Makefile
index 0baf8d2..c15d809 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 6affe1a..b18a219 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 */
diff --git a/gnu/usr.bin/gdb/gdb/Makefile b/gnu/usr.bin/gdb/gdb/Makefile
index 0baf8d2..c15d809 100644
--- a/gnu/usr.bin/gdb/gdb/Makefile
+++ b/gnu/usr.bin/gdb/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/gdb/gdb/nm.h b/gnu/usr.bin/gdb/gdb/nm.h
index 6affe1a..b18a219 100644
--- a/gnu/usr.bin/gdb/gdb/nm.h
+++ b/gnu/usr.bin/gdb/gdb/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 */
OpenPOWER on IntegriCloud