summaryrefslogtreecommitdiffstats
path: root/sys/dev/ofw
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2004-07-10 21:07:44 +0000
committermarcel <marcel@FreeBSD.org>2004-07-10 21:07:44 +0000
commit069f39a671ec30859b458228741ffd0bcca25e3c (patch)
tree601071d76482c180903b8c11264c6e0b5c3aa206 /sys/dev/ofw
parent5aaccdba8a1ce716f8bda206fce1de8614512d6c (diff)
downloadFreeBSD-src-069f39a671ec30859b458228741ffd0bcca25e3c.zip
FreeBSD-src-069f39a671ec30859b458228741ffd0bcca25e3c.tar.gz
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().
Diffstat (limited to 'sys/dev/ofw')
-rw-r--r--sys/dev/ofw/ofw_console.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/sys/dev/ofw/ofw_console.c b/sys/dev/ofw/ofw_console.c
index 9dfe713..0e1f91d 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);
}
OpenPOWER on IntegriCloud