Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/powerpc/booke Also supprese printing fatal traps if...



details:   https://anonhg.NetBSD.org/src/rev/343d8a554cd4
branches:  trunk
changeset: 780663:343d8a554cd4
user:      matt <matt%NetBSD.org@localhost>
date:      Thu Aug 02 14:07:47 2012 +0000

description:
Also supprese printing fatal traps if the process is being debugged.

diffstat:

 sys/arch/powerpc/booke/trap.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r b89079c3d3fb -r 343d8a554cd4 sys/arch/powerpc/booke/trap.c
--- a/sys/arch/powerpc/booke/trap.c     Thu Aug 02 14:06:34 2012 +0000
+++ b/sys/arch/powerpc/booke/trap.c     Thu Aug 02 14:07:47 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: trap.c,v 1.21 2012/08/02 13:50:15 matt Exp $   */
+/*     $NetBSD: trap.c,v 1.22 2012/08/02 14:07:47 matt Exp $   */
 /*-
  * Copyright (c) 2010, 2011 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -38,7 +38,7 @@
 
 #include <sys/cdefs.h>
 
-__KERNEL_RCSID(1, "$NetBSD: trap.c,v 1.21 2012/08/02 13:50:15 matt Exp $");
+__KERNEL_RCSID(1, "$NetBSD: trap.c,v 1.22 2012/08/02 14:07:47 matt Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -882,6 +882,7 @@
                         * uncaught.
                         */
                        if (cpu_printfataltraps
+                           && (p->p_slflag & PSL_TRACED) == 0
                            && !sigismember(&p->p_sigctx.ps_sigcatch,
                                    ksi.ksi_signo)) {
                                printf("%s: pid %d.%d (%s):"



Home | Main Index | Thread Index | Old Index