summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2008-03-02 20:29:21 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2008-03-02 20:29:21 +0000
commit3070fc73d0b725d3194b3cc4afda306fbc3b83c5 (patch)
treee7e3e3742a8c4cff1e908fba75590889aa446cb0 /sys
parent2abb924d615ef1822c89730007ec3b1610586e8d (diff)
Include sigcode in core dumps. This makes it possible to backtrace
through signal handlers with gdb. ok miod@
Diffstat (limited to 'sys')
-rw-r--r--sys/uvm/uvm_unix.c5
1 files changed, 3 insertions, 2 deletions
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;
/*