diff options
| author | 2008-03-02 20:29:20 +0000 | |
|---|---|---|
| committer | 2008-03-02 20:29:20 +0000 | |
| commit | 406d15a28eef7e06ad9cf8e4cb5021a07024b7db (patch) | |
| tree | b289f459f3fc39444088d50dbe4f666f4a09e8da /sys/uvm/uvm_unix.c | |
| parent | Make sure that temporary file has been successfully opened. (diff) | |
| download | wireguard-openbsd-406d15a28eef7e06ad9cf8e4cb5021a07024b7db.tar.xz wireguard-openbsd-406d15a28eef7e06ad9cf8e4cb5021a07024b7db.zip | |
Include sigcode in core dumps. This makes it possible to backtrace
through signal handlers with gdb.
ok miod@
Diffstat (limited to 'sys/uvm/uvm_unix.c')
| -rw-r--r-- | sys/uvm/uvm_unix.c | 5 |
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; /* |
