summaryrefslogtreecommitdiff
path: root/kern/debug.c
diff options
context:
space:
mode:
authorMichael Casadevall <sonicmctails@gmail.com>2007-12-19 22:18:37 +0000
committerThomas Schwinge <tschwinge@gnu.org>2009-06-18 00:35:13 +0200
commit894bc8c5b7936d274195f70b6db560f4fec569f4 (patch)
treebd0181ca26850bc5660e846bbc416927f8a9cf16 /kern/debug.c
parent45b1b09e0c92f21852d16477e722595e70bc0919 (diff)
Inital commit of gdb branch
Diffstat (limited to 'kern/debug.c')
-rw-r--r--kern/debug.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/kern/debug.c b/kern/debug.c
index d07f1ed4..6d760e5e 100644
--- a/kern/debug.c
+++ b/kern/debug.c
@@ -164,6 +164,8 @@ panic(const char *s, ...)
#if MACH_KDB
Debugger("panic");
+#elif MACH_GDB_STUB
+ breakpoint();
#else
halt_all_cpus (1);
#endif