summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorgrehan <grehan@FreeBSD.org>2004-07-12 22:26:20 +0000
committergrehan <grehan@FreeBSD.org>2004-07-12 22:26:20 +0000
commit94e8bc79551e6c53e8a8ad13747b2afb25ed2816 (patch)
tree7b3b82deddfa795e02a177ad8cc9c209254658f6 /sys
parentf05f1634a39c5efad217c802108551ea56458fbb (diff)
downloadFreeBSD-src-94e8bc79551e6c53e8a8ad13747b2afb25ed2816.zip
FreeBSD-src-94e8bc79551e6c53e8a8ad13747b2afb25ed2816.tar.gz
Bring into KDB new order.
Diffstat (limited to 'sys')
-rw-r--r--sys/powerpc/aim/trap.c15
-rw-r--r--sys/powerpc/powerpc/trap.c15
2 files changed, 12 insertions, 18 deletions
diff --git a/sys/powerpc/aim/trap.c b/sys/powerpc/aim/trap.c
index 2738c57..621f187 100644
--- a/sys/powerpc/aim/trap.c
+++ b/sys/powerpc/aim/trap.c
@@ -34,10 +34,10 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
-#include "opt_ddb.h"
#include "opt_ktrace.h"
#include <sys/param.h>
+#include <sys/kdb.h>
#include <sys/proc.h>
#include <sys/ktr.h>
#include <sys/lock.h>
@@ -73,12 +73,6 @@ __FBSDID("$FreeBSD$");
#include <machine/spr.h>
#include <machine/sr.h>
-#include <ddb/ddb.h>
-
-#ifndef MULTIPROCESSOR
-extern int intr_depth;
-#endif
-
void trap(struct trapframe *);
static void trap_fatal(struct trapframe *frame);
@@ -99,6 +93,8 @@ int badaddr_read(void *, size_t, int *);
extern char *syscallnames[];
+extern int debugger_on_panic; /* XXX */
+
struct powerpc_exception {
u_int vector;
char *name;
@@ -269,8 +265,9 @@ trap_fatal(struct trapframe *frame)
{
printtrap(frame->exc, frame, 1, (frame->srr1 & PSL_PR));
-#ifdef DDB
- if ((debugger_on_panic || db_active) && kdb_trap(frame->exc, frame))
+#ifdef KDB
+ if ((debugger_on_panic || kdb_active) &&
+ kdb_trap(frame->exc, 0, frame))
return;
#endif
panic("%s trap", trapname(frame->exc));
diff --git a/sys/powerpc/powerpc/trap.c b/sys/powerpc/powerpc/trap.c
index 2738c57..621f187 100644
--- a/sys/powerpc/powerpc/trap.c
+++ b/sys/powerpc/powerpc/trap.c
@@ -34,10 +34,10 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
-#include "opt_ddb.h"
#include "opt_ktrace.h"
#include <sys/param.h>
+#include <sys/kdb.h>
#include <sys/proc.h>
#include <sys/ktr.h>
#include <sys/lock.h>
@@ -73,12 +73,6 @@ __FBSDID("$FreeBSD$");
#include <machine/spr.h>
#include <machine/sr.h>
-#include <ddb/ddb.h>
-
-#ifndef MULTIPROCESSOR
-extern int intr_depth;
-#endif
-
void trap(struct trapframe *);
static void trap_fatal(struct trapframe *frame);
@@ -99,6 +93,8 @@ int badaddr_read(void *, size_t, int *);
extern char *syscallnames[];
+extern int debugger_on_panic; /* XXX */
+
struct powerpc_exception {
u_int vector;
char *name;
@@ -269,8 +265,9 @@ trap_fatal(struct trapframe *frame)
{
printtrap(frame->exc, frame, 1, (frame->srr1 & PSL_PR));
-#ifdef DDB
- if ((debugger_on_panic || db_active) && kdb_trap(frame->exc, frame))
+#ifdef KDB
+ if ((debugger_on_panic || kdb_active) &&
+ kdb_trap(frame->exc, 0, frame))
return;
#endif
panic("%s trap", trapname(frame->exc));
OpenPOWER on IntegriCloud