On my FreeBSD 8 and 9 machines, I can't use ctl-alt-esc from the console to enter the kernel debugger. DDB is compiled into the kernel. It works fine on my 7 and earlier machines.
I looked at kbdcontrol to see if it had been unmapped, but it seems correct:
Searching the kernel configuration for debug like these things:
I can use sysctl to get in, but when my shell is locked, I won't be able to do that, of course.
I must be missing something that would allow ctl-alt-esc to drop me into the kernel debugger, but what?
I looked at kbdcontrol to see if it had been unmapped, but it seems correct:
Code:
kbdcontrol -d | egrep 'debug|^#'
# alt
# scan cntrl alt alt cntrl lock
# code base shift cntrl shift alt shift cntrl shift state
# ------------------------------------------------------------------
001 esc esc esc esc esc esc debug esc O
092 nscr pscr debug debug nop nop nop nop O
Searching the kernel configuration for debug like these things:
Code:
config -x /boot/kernel/kernel | egrep -i 'db|deb'
makeoptions DEBUG=-g
options DDB_CTF
options GDB
options DDB_NUMSYM
options DDB
options KDB_UNATTENDED
options ALT_BREAK_TO_DEBUGGER
options USB_DEBUG
options IEEE80211_DEBUG
options KDB_TRACE
options KDB
device cardbus
I can use sysctl to get in, but when my shell is locked, I won't be able to do that, of course.
Code:
sudo sysctl debug.kdb.enter=1
debug.kdb.enter: 0KDB: enter: sysctl debug.kdb.enter
[thread pid 68665 tid 100420 ]
Stopped at 0xc097aaea = kdb_enter+0x3a: movl $0,0xc1024574 = kdb_why
db> c
I must be missing something that would allow ctl-alt-esc to drop me into the kernel debugger, but what?