diff options
author | das <das@FreeBSD.org> | 2004-11-20 02:32:04 +0000 |
---|---|---|
committer | das <das@FreeBSD.org> | 2004-11-20 02:32:04 +0000 |
commit | 8d8b5ace18d4442cbb949e9e1f48a0cfdb1d7c2e (patch) | |
tree | 2f9d83c630743799db13ebaae3fca79b14ffcf28 /sys/compat/pecoff | |
parent | 02205f8827ecfd431c5893cab3129df47d56a1f3 (diff) | |
download | FreeBSD-src-8d8b5ace18d4442cbb949e9e1f48a0cfdb1d7c2e.zip FreeBSD-src-8d8b5ace18d4442cbb949e9e1f48a0cfdb1d7c2e.tar.gz |
Maintain the broken state of backwards compatibilty for a.out (and
PECOFF!) core dumps. None of the old versions of gdb I tried were
able to read a.out core dumps before or after this change.
Reviewed by: arch@
Diffstat (limited to 'sys/compat/pecoff')
-rw-r--r-- | sys/compat/pecoff/imgact_pecoff.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/compat/pecoff/imgact_pecoff.c b/sys/compat/pecoff/imgact_pecoff.c index 6a91b13..0efd794 100644 --- a/sys/compat/pecoff/imgact_pecoff.c +++ b/sys/compat/pecoff/imgact_pecoff.c @@ -79,6 +79,8 @@ __FBSDID("$FreeBSD$"); #include "opt_pecoff.h" +#define uarea_pages 1 + #define PECOFF_PE_SIGNATURE "PE\0\0" static int pecoff_fixup(register_t **, struct image_params *); static int @@ -189,9 +191,8 @@ pecoff_coredump(register struct thread * td, register struct vnode * vp, if (tempuser == NULL) return (ENOMEM); PROC_LOCK(p); - fill_kinfo_proc(p, &p->p_uarea->u_kproc); + fill_user(p, (struct user *)tempuser); PROC_UNLOCK(p); - bcopy(p->p_uarea, tempuser, sizeof(struct user)); bcopy(td->td_frame, tempuser + ctob(uarea_pages) + ((caddr_t)td->td_frame - (caddr_t)td->td_kstack), |