Fill in some extra fields in the eproc structure. gdb uses this information

to determine where the data segment in core dumps should be mapped.
Reviewed by:	Peter Wemm <peter@spinner.dialix.com.au>
This commit is contained in:
Tor Egge 1997-06-27 15:42:05 +00:00
parent 006ad618b8
commit b747f8bce4
1 changed files with 5 additions and 1 deletions

View File

@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)kern_proc.c 8.7 (Berkeley) 2/14/95
* $Id: kern_proc.c,v 1.25 1997/02/22 09:39:08 peter Exp $
* $Id: kern_proc.c,v 1.26 1997/03/24 11:24:36 bde Exp $
*/
#include <sys/param.h>
@ -420,6 +420,10 @@ fill_eproc(p, ep)
ep->e_vm.vm_tsize = vm->vm_tsize;
ep->e_vm.vm_dsize = vm->vm_dsize;
ep->e_vm.vm_ssize = vm->vm_ssize;
ep->e_vm.vm_taddr = vm->vm_taddr;
ep->e_vm.vm_daddr = vm->vm_daddr;
ep->e_vm.vm_minsaddr = vm->vm_minsaddr;
ep->e_vm.vm_maxsaddr = vm->vm_maxsaddr;
#ifndef sparc
ep->e_vm.vm_pmap = vm->vm_pmap;
#endif