summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_trap.c
diff options
context:
space:
mode:
authordg <dg@FreeBSD.org>1994-08-27 16:14:39 +0000
committerdg <dg@FreeBSD.org>1994-08-27 16:14:39 +0000
commit4d4250da00e8f202ebcf4523fa25568d04b116ad (patch)
treeb3ca65b5c2af24b8ce278da15822a7fd638bbeb5 /sys/kern/subr_trap.c
parentc900d4c13e16169b2482efbfb34820b08862bc16 (diff)
downloadFreeBSD-src-4d4250da00e8f202ebcf4523fa25568d04b116ad.zip
FreeBSD-src-4d4250da00e8f202ebcf4523fa25568d04b116ad.tar.gz
1) Changed ddb into a option rather than a pseudo-device (use options DDB
in your kernel config now). 2) Added ps ddb function from 1.1.5. Cleaned it up a bit and moved into its own file. 3) Added \r handing in db_printf. 4) Added missing memory usage stats to statclock(). 5) Added dummy function to pseudo_set so it will be emitted if there are no other pseudo declarations.
Diffstat (limited to 'sys/kern/subr_trap.c')
-rw-r--r--sys/kern/subr_trap.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/sys/kern/subr_trap.c b/sys/kern/subr_trap.c
index dc62dc9..e4a9100 100644
--- a/sys/kern/subr_trap.c
+++ b/sys/kern/subr_trap.c
@@ -35,7 +35,7 @@
* SUCH DAMAGE.
*
* from: @(#)trap.c 7.4 (Berkeley) 5/13/91
- * $Id: trap.c,v 1.29 1994/08/18 22:34:43 wollman Exp $
+ * $Id: trap.c,v 1.30 1994/08/24 11:52:21 sos Exp $
*/
/*
@@ -67,7 +67,6 @@
#include "isa.h"
#include "npx.h"
-#include "ddb.h"
int trap_pfault __P((struct trapframe *, int));
void trap_fatal __P((struct trapframe *));
@@ -225,7 +224,7 @@ trap(frame)
#if NISA > 0
case T_NMI:
-#if NDDB > 0
+#ifdef DDB
/* NMI can be hooked up to a pushbutton for debugging */
printf ("NMI ... going to debugger\n");
if (kdb_trap (type, 0, &frame))
@@ -286,7 +285,7 @@ trap(frame)
}
break;
-#if NDDB > 0
+#ifdef DDB
case T_BPTFLT:
case T_TRCTRAP:
if (kdb_trap (type, 0, &frame))
@@ -301,7 +300,7 @@ trap(frame)
#if NISA > 0
case T_NMI:
-#if NDDB > 0
+#ifdef DDB
/* NMI can be hooked up to a pushbutton for debugging */
printf ("NMI ... going to debugger\n");
if (kdb_trap (type, 0, &frame))
@@ -505,7 +504,7 @@ trap_fatal(frame)
if (kdb_trap(&psl))
return;
#endif
-#if NDDB > 0
+#ifdef DDB
if (kdb_trap (type, 0, frame))
return;
#endif
OpenPOWER on IntegriCloud