diff options
author | jdp <jdp@FreeBSD.org> | 1998-09-14 05:36:51 +0000 |
---|---|---|
committer | jdp <jdp@FreeBSD.org> | 1998-09-14 05:36:51 +0000 |
commit | 70bb8503aada512ec1237d4fe781e53761791b6a (patch) | |
tree | bcbd3e1c4a1caadaba5890cec117aefdfb8c0612 /sys/i386/linux | |
parent | f69ac0c38654fe24e1fb1f743a634e62b4518e1a (diff) | |
download | FreeBSD-src-70bb8503aada512ec1237d4fe781e53761791b6a.zip FreeBSD-src-70bb8503aada512ec1237d4fe781e53761791b6a.tar.gz |
Add provisions for variant core dump file formats, depending on the
object format of the executable being dumped. This is the first
step toward producing ELF core dumps in the proper format. I will
commit the code to generate the ELF core dumps Real Soon Now. In
the meantime, ELF executables won't dump core at all. That is
probably no less useful than dumping a.out-style core dumps as they
have done until now.
Submitted by: Alex <garbanzo@hooked.net> (with very minor changes by me)
Diffstat (limited to 'sys/i386/linux')
-rw-r--r-- | sys/i386/linux/linux_sysvec.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/sys/i386/linux/linux_sysvec.c b/sys/i386/linux/linux_sysvec.c index 67ed448..4b1380c 100644 --- a/sys/i386/linux/linux_sysvec.c +++ b/sys/i386/linux/linux_sysvec.c @@ -25,7 +25,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: linux_sysvec.c,v 1.31 1998/07/29 16:43:00 bde Exp $ + * $Id: linux_sysvec.c,v 1.32 1998/08/16 01:21:50 bde Exp $ */ /* XXX we use functions that might not exist. */ @@ -41,6 +41,7 @@ #include <sys/systm.h> #include <sys/sysent.h> #include <sys/imgact.h> +#include <sys/imgact_aout.h> #include <sys/imgact_elf.h> #include <sys/signalvar.h> #include <sys/malloc.h> @@ -401,7 +402,8 @@ struct sysentvec linux_sysvec = { linux_sigcode, &linux_szsigcode, linux_prepsyscall, - "Linux a.out" + "Linux a.out", + aout_coredump }; struct sysentvec elf_linux_sysvec = { @@ -418,7 +420,8 @@ struct sysentvec elf_linux_sysvec = { linux_sigcode, &linux_szsigcode, linux_prepsyscall, - "Linux ELF" + "Linux ELF", + elf_coredump }; /* |