summaryrefslogtreecommitdiff
path: root/gnu/usr.bin
diff options
context:
space:
mode:
authorJoerg Wunsch <joerg@FreeBSD.org>1997-03-15 10:46:21 +0000
committerJoerg Wunsch <joerg@FreeBSD.org>1997-03-15 10:46:21 +0000
commitf08e0f77bdff38e5efc7f60faed2475d6e317ef4 (patch)
treeed32b1a8c36bd28d03e3242861c81cfef431a9b1 /gnu/usr.bin
parentc1e644e2986244806b199fec91fe1aef374aa8f6 (diff)
Notes
Diffstat (limited to 'gnu/usr.bin')
-rw-r--r--gnu/usr.bin/gdb/gdb/nm.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/gnu/usr.bin/gdb/gdb/nm.h b/gnu/usr.bin/gdb/gdb/nm.h
index 6affe1ac87b9..b18a21970033 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 */