diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2009-03-05 19:52:25 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2009-03-05 19:52:25 +0000 |
commit | 94b35ac8ba6c670755f5c398f89709d960544622 (patch) | |
tree | 0c62a6bd55e1b1b55e3b7f5f166d8d94a0c07777 /sys/compat/hpux | |
parent | 4939771421161444c79853f0ec2588d8aac2627e (diff) |
Make ELF platforms generate ELF core dumps. Somewhat based on code from
NetBSD.
ok kurt@, drahn@, miod@
Diffstat (limited to 'sys/compat/hpux')
-rw-r--r-- | sys/compat/hpux/hppa/hpux_exec.c | 4 | ||||
-rw-r--r-- | sys/compat/hpux/m68k/hpux_exec.c | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/sys/compat/hpux/hppa/hpux_exec.c b/sys/compat/hpux/hppa/hpux_exec.c index 163ce3dbad8..8c7bd9114c3 100644 --- a/sys/compat/hpux/hppa/hpux_exec.c +++ b/sys/compat/hpux/hppa/hpux_exec.c @@ -1,4 +1,4 @@ -/* $OpenBSD: hpux_exec.c,v 1.3 2005/12/30 19:46:53 miod Exp $ */ +/* $OpenBSD: hpux_exec.c,v 1.4 2009/03/05 19:52:23 kettenis Exp $ */ /* * Copyright (c) 2004 Michael Shalayeff. All rights reserved. @@ -46,6 +46,7 @@ #include <sys/vnode.h> #include <sys/mman.h> #include <sys/stat.h> +#include <sys/core.h> #include <uvm/uvm_extern.h> @@ -89,6 +90,7 @@ struct emul emul_hpux = { copyargs, hpux_setregs, NULL, + coredump_trad, hpux_sigcode, hpux_esigcode, }; diff --git a/sys/compat/hpux/m68k/hpux_exec.c b/sys/compat/hpux/m68k/hpux_exec.c index ac83a6ff412..97653f9c56d 100644 --- a/sys/compat/hpux/m68k/hpux_exec.c +++ b/sys/compat/hpux/m68k/hpux_exec.c @@ -1,4 +1,4 @@ -/* $OpenBSD: hpux_exec.c,v 1.3 2007/11/02 19:18:54 martin Exp $ */ +/* $OpenBSD: hpux_exec.c,v 1.4 2009/03/05 19:52:23 kettenis Exp $ */ /* $NetBSD: hpux_exec.c,v 1.8 1997/03/16 10:14:44 thorpej Exp $ */ /* @@ -46,6 +46,7 @@ #include <sys/vnode.h> #include <sys/mman.h> #include <sys/stat.h> +#include <sys/core.h> #include <uvm/uvm_extern.h> @@ -89,6 +90,7 @@ struct emul emul_hpux = { copyargs, hpux_setregs, NULL, + coredump_trad, sigcode, esigcode, }; |