Module Name: src Committed By: christos Date: Wed May 15 13:49:10 UTC 2019
Modified Files: src/sys/arch/amd64/amd64: trap.c Log Message: print also ksi_code. To generate a diff of this commit: cvs rdiff -u -r1.119 -r1.120 src/sys/arch/amd64/amd64/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/amd64/amd64/trap.c diff -u src/sys/arch/amd64/amd64/trap.c:1.119 src/sys/arch/amd64/amd64/trap.c:1.120 --- src/sys/arch/amd64/amd64/trap.c:1.119 Fri Apr 5 23:06:24 2019 +++ src/sys/arch/amd64/amd64/trap.c Wed May 15 09:49:10 2019 @@ -1,4 +1,4 @@ -/* $NetBSD: trap.c,v 1.119 2019/04/06 03:06:24 thorpej Exp $ */ +/* $NetBSD: trap.c,v 1.120 2019/05/15 13:49:10 christos Exp $ */ /* * Copyright (c) 1998, 2000, 2017 The NetBSD Foundation, Inc. @@ -64,7 +64,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.119 2019/04/06 03:06:24 thorpej Exp $"); +__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.120 2019/05/15 13:49:10 christos Exp $"); #include "opt_ddb.h" #include "opt_kgdb.h" @@ -751,10 +751,10 @@ sigdebug(const struct trapframe *tf, con struct lwp *l = curlwp; struct proc *p = l->l_proc; - printf("pid %d.%d (%s): signal %d (trap %#lx) " + printf("pid %d.%d (%s): signal %d code=%d (trap %#lx) " "@rip %#lx addr %#lx error=%d\n", - p->p_pid, l->l_lid, p->p_comm, ksi->ksi_signo, tf->tf_trapno, - tf->tf_rip, rcr2(), e); + p->p_pid, l->l_lid, p->p_comm, ksi->ksi_signo, ksi->ksi_code, + tf->tf_trapno, tf->tf_rip, rcr2(), e); frame_dump(tf, lwp_getpcb(l)); } #endif