PERFORCE change 53338 for review
Marcel Moolenaar
marcel at FreeBSD.org
Sun May 23 13:40:15 PDT 2004
http://perforce.freebsd.org/chv.cgi?CH=53338
Change 53338 by marcel at marcel_nfs on 2004/05/23 13:39:45
s/DDB/KDB/g
s/db_alt_break()/kdb_alt_break()/g
s/breakpoint()/kdb_enter()/g
include <sys/kdb.h>
Affected files ...
.. //depot/projects/gdb/sys/dev/ofw/ofw_console.c#3 edit
Differences ...
==== //depot/projects/gdb/sys/dev/ofw/ofw_console.c#3 (text+ko) ====
@@ -29,10 +29,10 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD: src/sys/dev/ofw/ofw_console.c,v 1.20 2004/02/21 21:10:45 phk Exp $");
-#include "opt_ddb.h"
#include "opt_comconsole.h"
#include <sys/param.h>
+#include <sys/kdb.h>
#include <sys/kernel.h>
#include <sys/systm.h>
#include <sys/types.h>
@@ -65,7 +65,7 @@
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
@@ -299,9 +299,9 @@
}
}
-#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);
@@ -313,9 +313,9 @@
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);
}
More information about the p4-projects
mailing list