Use MID_MACHINE rather than MID_SPARC in cpu_coredump(), and add a comment

about dumping a SPARC32 core file if we're using emul_sparc32.
This commit is contained in:
thorpej 1998-09-09 11:06:08 +00:00
parent f7a4380174
commit 2f9d1a8c8c
1 changed files with 7 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: vm_machdep.c,v 1.9 1998/09/09 00:07:56 thorpej Exp $ */ /* $NetBSD: vm_machdep.c,v 1.10 1998/09/09 11:06:08 thorpej Exp $ */
/* /*
* Copyright (c) 1996 * Copyright (c) 1996
@ -417,7 +417,12 @@ cpu_coredump(p, vp, cred, chdr)
struct md_coredump md_core; struct md_coredump md_core;
struct coreseg cseg; struct coreseg cseg;
CORE_SETMAGIC(*chdr, COREMAGIC, MID_SPARC, 0); /*
* XXX DUMP A SPARC32 CORE FILE IF WE ARE USING
* XXX emul_sparc32!
*/
CORE_SETMAGIC(*chdr, COREMAGIC, MID_MACHINE, 0);
chdr->c_hdrsize = ALIGN(sizeof(*chdr)); chdr->c_hdrsize = ALIGN(sizeof(*chdr));
chdr->c_seghdrsize = ALIGN(sizeof(cseg)); chdr->c_seghdrsize = ALIGN(sizeof(cseg));
chdr->c_cpusize = sizeof(md_core); chdr->c_cpusize = sizeof(md_core);