summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2004-07-10 20:50:19 +0000
committermarcel <marcel@FreeBSD.org>2004-07-10 20:50:19 +0000
commit237e6907449b7b403246fb03bbff1a8b61cbec6d (patch)
tree946b8711ed33771ce3e003674eab74b60cf1b0e1
parentcdeb3179e784c4433c8f76634a6faac526b1dd14 (diff)
downloadFreeBSD-src-237e6907449b7b403246fb03bbff1a8b61cbec6d.zip
FreeBSD-src-237e6907449b7b403246fb03bbff1a8b61cbec6d.tar.gz
Update for the KDB framework:
o Remove inclusion of opt_ddb.h. o Call kdb_enter() instead of Debugger(). o Make debugging code conditional upon KDB.
-rw-r--r--sys/alpha/tlsb/zs_tlsb.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/sys/alpha/tlsb/zs_tlsb.c b/sys/alpha/tlsb/zs_tlsb.c
index d4504d3..90eadda 100644
--- a/sys/alpha/tlsb/zs_tlsb.c
+++ b/sys/alpha/tlsb/zs_tlsb.c
@@ -33,11 +33,10 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
-#include "opt_ddb.h"
-
#include <sys/param.h>
#include <sys/kernel.h>
#include <sys/systm.h>
+#include <sys/kdb.h>
#include <sys/module.h>
#include <sys/bus.h>
#include <sys/conf.h>
@@ -497,9 +496,9 @@ zsc_tlsb_intr(void *arg)
while (zs_get_status(base, 0) & 1) {
c = zs_get_data(base, 0);
-#ifdef DDB
+#ifdef KDB
if (c == CTRL('\\'))
- Debugger("manual escape to debugger");
+ kdb_enter("manual escape to debugger");
#endif
if (tp && (tp->t_state & TS_ISOPEN))
ttyld_rint(tp, c);
@@ -512,9 +511,9 @@ zsc_tlsb_intr(void *arg)
while (zs_get_status(base, 1) & 1) {
c = zs_get_data(base, 1);
-#ifdef DDB
+#ifdef KDB
if (c == CTRL('\\'))
- Debugger("manual escape to debugger");
+ kdb_enter("manual escape to debugger");
#endif
if (tp && (tp->t_state & TS_ISOPEN))
ttyld_rint(tp, c);
OpenPOWER on IntegriCloud