diff options
author | rwatson <rwatson@FreeBSD.org> | 2007-12-25 17:52:02 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2007-12-25 17:52:02 +0000 |
commit | bdee30611dab246a5227856892385a02c7352f12 (patch) | |
tree | ae45f86ab6fb75519ba2d9dbc206616dba84cc13 /sys/pc98 | |
parent | e3b63ab4174a215e3a606c591d7a3f41490e75e6 (diff) | |
download | FreeBSD-src-bdee30611dab246a5227856892385a02c7352f12.zip FreeBSD-src-bdee30611dab246a5227856892385a02c7352f12.tar.gz |
Add a new 'why' argument to kdb_enter(), and a set of constants to use
for that argument. This will allow DDB to detect the broad category of
reason why the debugger has been entered, which it can use for the
purposes of deciding which DDB script to run.
Assign approximate why values to all current consumers of the
kdb_enter() interface.
Diffstat (limited to 'sys/pc98')
-rw-r--r-- | sys/pc98/cbus/sio.c | 6 | ||||
-rw-r--r-- | sys/pc98/pc98/machdep.c | 2 |
2 files changed, 5 insertions, 3 deletions
diff --git a/sys/pc98/cbus/sio.c b/sys/pc98/cbus/sio.c index 648cb04..6533a53 100644 --- a/sys/pc98/cbus/sio.c +++ b/sys/pc98/cbus/sio.c @@ -2369,7 +2369,8 @@ more_intr: #ifdef ALT_BREAK_TO_DEBUGGER if (com->unit == comconsole && kdb_alt_break(recv_data, &com->alt_brk_state) != 0) - kdb_enter("Break sequence on console"); + kdb_enter(KDB_WHY_BREAK, + "Break sequence on console"); #endif /* ALT_BREAK_TO_DEBUGGER */ #endif /* KDB */ if (line_status & (LSR_BI | LSR_FE | LSR_PE)) { @@ -2388,7 +2389,8 @@ more_intr: if (line_status & LSR_BI) { #if defined(KDB) && defined(BREAK_TO_DEBUGGER) if (com->unit == comconsole) { - kdb_enter("Line break on console"); + kdb_enter(KDB_WHY_BREAK, + "Line break on console"); goto cont; } #endif diff --git a/sys/pc98/pc98/machdep.c b/sys/pc98/pc98/machdep.c index 1472af0..62d313f 100644 --- a/sys/pc98/pc98/machdep.c +++ b/sys/pc98/pc98/machdep.c @@ -2061,7 +2061,7 @@ init386(first) #ifdef KDB if (boothowto & RB_KDB) - kdb_enter("Boot flags requested debugger"); + kdb_enter(KDB_WHY_BOOTFLAGS, "Boot flags requested debugger"); #endif finishidentcpu(); /* Final stage of CPU initialization */ |