From 406d15a28eef7e06ad9cf8e4cb5021a07024b7db Mon Sep 17 00:00:00 2001 From: kettenis Date: Sun, 2 Mar 2008 20:29:20 +0000 Subject: Include sigcode in core dumps. This makes it possible to backtrace through signal handlers with gdb. ok miod@ --- sys/uvm/uvm_unix.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sys/uvm/uvm_unix.c') diff --git a/sys/uvm/uvm_unix.c b/sys/uvm/uvm_unix.c index b4027953956..88601d6a810 100644 --- a/sys/uvm/uvm_unix.c +++ b/sys/uvm/uvm_unix.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uvm_unix.c,v 1.33 2008/02/27 21:46:34 kettenis Exp $ */ +/* $OpenBSD: uvm_unix.c,v 1.34 2008/03/02 20:29:20 kettenis Exp $ */ /* $NetBSD: uvm_unix.c,v 1.18 2000/09/13 15:00:25 thorpej Exp $ */ /* @@ -181,7 +181,8 @@ uvm_coredump(p, vp, cred, chdr) panic("uvm_coredump: user process with submap?"); } - if (!(entry->protection & VM_PROT_WRITE)) + if (!(entry->protection & VM_PROT_WRITE) && + entry->start != p->p_sigcode) continue; /* -- cgit v1.2.3-59-g8ed1b