Module Name: src Committed By: jmcneill Date: Mon Aug 29 13:15:54 UTC 2011
Modified Files: src/sys/arch/usermode/usermode: trap.c Log Message: mem_access_handler: print originating lwp ptr + pid + lid To generate a diff of this commit: cvs rdiff -u -r1.11 -r1.12 src/sys/arch/usermode/usermode/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/usermode/usermode/trap.c diff -u src/sys/arch/usermode/usermode/trap.c:1.11 src/sys/arch/usermode/usermode/trap.c:1.12 --- src/sys/arch/usermode/usermode/trap.c:1.11 Mon Aug 29 12:42:19 2011 +++ src/sys/arch/usermode/usermode/trap.c Mon Aug 29 13:15:54 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: trap.c,v 1.11 2011/08/29 12:42:19 reinoud Exp $ */ +/* $NetBSD: trap.c,v 1.12 2011/08/29 13:15:54 jmcneill Exp $ */ /*- * Copyright (c) 2011 Reinoud Zandijk <rein...@netbsd.org> @@ -27,7 +27,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.11 2011/08/29 12:42:19 reinoud Exp $"); +__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.12 2011/08/29 13:15:54 jmcneill Exp $"); #include <sys/types.h> #include <sys/param.h> @@ -91,7 +91,10 @@ static volatile int recurse = 0; recurse++; - aprint_debug("trap\n"); + aprint_debug("trap lwp=%p pid=%d lid=%d\n", + curlwp, + curlwp->l_proc->p_pid, + curlwp->l_lid); if (recurse > 1) printf("enter trap recursion level %d\n", recurse); if ((info->si_signo == SIGSEGV) || (info->si_signo == SIGBUS)) {