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/dev/dcons | |
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/dev/dcons')
-rw-r--r-- | sys/dev/dcons/dcons_os.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/dcons/dcons_os.c b/sys/dev/dcons/dcons_os.c index d47515c..7eb89aa 100644 --- a/sys/dev/dcons/dcons_os.c +++ b/sys/dev/dcons/dcons_os.c @@ -207,11 +207,13 @@ dcons_check_break(struct dcons_softc *dc, int c) #ifdef GDB if (gdb_cur == &dcons_gdb_dbgport) { kdb_dbbe_select("gdb"); - kdb_enter("Break sequence on dcons gdb port"); + kdb_enter(KDB_WHY_BREAK, + "Break sequence on dcons gdb port"); } #endif } else - kdb_enter("Break sequence on dcons console port"); + kdb_enter(KDB_WHY_BREAK, + "Break sequence on dcons console port"); } #else switch (dc->brk_state) { |