Module Name: src
Committed By: matt
Date: Thu Aug 2 14:07:47 UTC 2012
Modified Files:
src/sys/arch/powerpc/booke: trap.c
Log Message:
Also supprese printing fatal traps if the process is being debugged.
To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 src/sys/arch/powerpc/booke/trap.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/powerpc/booke/trap.c
diff -u src/sys/arch/powerpc/booke/trap.c:1.21 src/sys/arch/powerpc/booke/trap.c:1.22
--- src/sys/arch/powerpc/booke/trap.c:1.21 Thu Aug 2 13:50:15 2012
+++ src/sys/arch/powerpc/booke/trap.c Thu Aug 2 14:07:47 2012
@@ -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 @@ trap(enum ppc_booke_exceptions trap_code
* 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):"