Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sparc64/sparc64 Only drop into the debuger if SDB_D...
details: https://anonhg.NetBSD.org/src/rev/bcf756e2e45c
branches: trunk
changeset: 514979:bcf756e2e45c
user: eeh <eeh%NetBSD.org@localhost>
date: Sat Sep 15 07:13:40 2001 +0000
description:
Only drop into the debuger if SDB_DDB is set.
diffstat:
sys/arch/sparc64/sparc64/machdep.c | 11 ++++-------
1 files changed, 4 insertions(+), 7 deletions(-)
diffs (43 lines):
diff -r 928186359ba7 -r bcf756e2e45c sys/arch/sparc64/sparc64/machdep.c
--- a/sys/arch/sparc64/sparc64/machdep.c Sat Sep 15 07:12:22 2001 +0000
+++ b/sys/arch/sparc64/sparc64/machdep.c Sat Sep 15 07:13:40 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.110 2001/09/10 21:19:26 chris Exp $ */
+/* $NetBSD: machdep.c,v 1.111 2001/09/15 07:13:40 eeh Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
@@ -680,14 +680,11 @@
/* First ensure consistent stack state (see sendsig). */
write_user_windows();
-if (p->p_addr->u_pcb.pcb_nsaved)
-printf("sigreturn14: pid %d nsaved %d\n",
- p->p_pid, (p->p_addr->u_pcb.pcb_nsaved));
if (rwindow_save(p)) {
#ifdef DEBUG
printf("sigreturn14: rwindow_save(%p) failed, sending SIGILL\n", p);
#ifdef DDB
- Debugger();
+ if (sigdebug & SDB_DDB) Debugger();
#endif
#endif
sigexit(p, SIGILL);
@@ -707,7 +704,7 @@
{
printf("sigreturn14: copyin failed: scp=%p\n", scp);
#ifdef DDB
- Debugger();
+ if (sigdebug & SDB_DDB) Debugger();
#endif
return (error);
}
@@ -729,7 +726,7 @@
(void *)(unsigned long)sc.sc_pc,
(void *)(unsigned long)sc.sc_npc);
#ifdef DDB
- Debugger();
+ if (sigdebug & SDB_DDB) Debugger();
#endif
return (EINVAL);
}
Home |
Main Index |
Thread Index |
Old Index