Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/i386/i386 (kdb_trap): do not enter DDB on traps whe...
details: https://anonhg.NetBSD.org/src/rev/e0495c360ccc
branches: trunk
changeset: 480563:e0495c360ccc
user: assar <assar%NetBSD.org@localhost>
date: Sun Jan 16 01:42:03 2000 +0000
description:
(kdb_trap): do not enter DDB on traps when db_onpanic == 0
diffstat:
sys/arch/i386/i386/db_interface.c | 13 ++++++-------
1 files changed, 6 insertions(+), 7 deletions(-)
diffs (40 lines):
diff -r 4faff1ba4338 -r e0495c360ccc sys/arch/i386/i386/db_interface.c
--- a/sys/arch/i386/i386/db_interface.c Sun Jan 16 00:44:59 2000 +0000
+++ b/sys/arch/i386/i386/db_interface.c Sun Jan 16 01:42:03 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: db_interface.c,v 1.27 1999/10/12 17:08:58 jdolecek Exp $ */
+/* $NetBSD: db_interface.c,v 1.28 2000/01/16 01:42:03 assar Exp $ */
/*
* Mach Operating System
@@ -50,7 +50,7 @@
#include <ddb/db_extern.h>
#include <ddb/db_access.h>
#include <ddb/db_output.h>
-
+#include <ddb/ddbvar.h>
extern label_t *db_recover;
extern char *trap_type[];
@@ -85,17 +85,16 @@
{
int s;
-#if 0
- if ((boothowto&RB_KDB) == 0)
- return(0);
-#endif
-
switch (type) {
case T_BPTFLT: /* breakpoint */
case T_TRCTRAP: /* single_step */
+ case T_NMI: /* NMI */
case -1: /* keyboard interrupt */
break;
default:
+ if (!db_onpanic)
+ return (0);
+
kdbprinttrap(type, code);
if (db_recover != 0) {
db_error("Faulted in DDB; continuing...\n");
Home |
Main Index |
Thread Index |
Old Index