diff options
| author | Joerg Wunsch <joerg@FreeBSD.org> | 1997-03-15 10:46:21 +0000 |
|---|---|---|
| committer | Joerg Wunsch <joerg@FreeBSD.org> | 1997-03-15 10:46:21 +0000 |
| commit | f08e0f77bdff38e5efc7f60faed2475d6e317ef4 (patch) | |
| tree | ed32b1a8c36bd28d03e3242861c81cfef431a9b1 /gnu/usr.bin | |
| parent | c1e644e2986244806b199fec91fe1aef374aa8f6 (diff) | |
Notes
Diffstat (limited to 'gnu/usr.bin')
| -rw-r--r-- | gnu/usr.bin/gdb/gdb/nm.h | 7 |
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 */ |
