diff options
author | Marcel Moolenaar <marcel@FreeBSD.org> | 2004-07-10 21:07:44 +0000 |
---|---|---|
committer | Marcel Moolenaar <marcel@FreeBSD.org> | 2004-07-10 21:07:44 +0000 |
commit | 8cabb94fde0f691d73a6d17248e087d298f60de6 (patch) | |
tree | 601071d76482c180903b8c11264c6e0b5c3aa206 /sys/dev/ofw/ofw_console.c | |
parent | d89b8fc48a8a8e45202f0d9a8403fcfe2c62fc99 (diff) |
Update for the KDB framework:
o Make debugging code conditional upon KDB instead of DDB.
o Call kdb_alt_break() instead of db_alt_break().
o Call kdb_enter() instead of breakpoint().
Notes
Notes:
svn path=/head/; revision=131916
Diffstat (limited to 'sys/dev/ofw/ofw_console.c')
-rw-r--r-- | sys/dev/ofw/ofw_console.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/sys/dev/ofw/ofw_console.c b/sys/dev/ofw/ofw_console.c index 9dfe71334c02..0e1f91dfea7b 100644 --- a/sys/dev/ofw/ofw_console.c +++ b/sys/dev/ofw/ofw_console.c @@ -26,11 +26,11 @@ #include <sys/cdefs.h> __FBSDID("$FreeBSD$"); -#include "opt_ddb.h" #include "opt_comconsole.h" #include "opt_ofw.h" #include <sys/param.h> +#include <sys/kdb.h> #include <sys/kernel.h> #include <sys/systm.h> #include <sys/types.h> @@ -64,7 +64,7 @@ static int polltime; static struct callout_handle ofw_timeouthandle = CALLOUT_HANDLE_INITIALIZER(&ofw_timeouthandle); -#if defined(DDB) && defined(ALT_BREAK_TO_DEBUGGER) +#if defined(KDB) && defined(ALT_BREAK_TO_DEBUGGER) static int alt_break_state; #endif @@ -276,9 +276,9 @@ ofw_cons_getc(struct consdev *cp) } } -#if defined(DDB) && defined(ALT_BREAK_TO_DEBUGGER) - if (db_alt_break(ch, &alt_break_state)) - breakpoint(); +#if defined(KDB) && defined(ALT_BREAK_TO_DEBUGGER) + if (kdb_alt_break(ch, &alt_break_state)) + kdb_enter("Break sequence on console"); #endif return (ch); @@ -290,9 +290,9 @@ ofw_cons_checkc(struct consdev *cp) unsigned char ch; if (OF_read(stdin, &ch, 1) > 0) { -#if defined(DDB) && defined(ALT_BREAK_TO_DEBUGGER) - if (db_alt_break(ch, &alt_break_state)) - breakpoint(); +#if defined(KDB) && defined(ALT_BREAK_TO_DEBUGGER) + if (kdb_alt_break(ch, &alt_break_state)) + kdb_enter("Break sequence on console"); #endif return (ch); } |