From e1f91dbd18bd570d581ce5fac4660c3dcd429f3d Mon Sep 17 00:00:00 2001 From: Alexander Kabaev Date: Wed, 28 Jul 2004 05:43:08 +0000 Subject: [PATCH] Remove stale code protected by #ifdef sparc. GCC 3.4.x adds sparc to predefined symbols on all SPARC platforms and FreeBSD follows the crowd. --- lib/libkvm/kvm_proc.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/lib/libkvm/kvm_proc.c b/lib/libkvm/kvm_proc.c index 7a95c4d4c431..661a17ce0073 100644 --- a/lib/libkvm/kvm_proc.c +++ b/lib/libkvm/kvm_proc.c @@ -292,14 +292,6 @@ kvm_proclist(kd, what, arg, p, bp, maxcnt) (void)kvm_read(kd, (u_long)mtd.td_wmesg, kp->ki_wmesg, WMESGLEN); -#ifdef sparc - (void)kvm_read(kd, (u_long)&proc.p_vmspace->vm_rssize, - (char *)&kp->ki_rssize, - sizeof(kp->ki_rssize)); - (void)kvm_read(kd, (u_long)&proc.p_vmspace->vm_tsize, - (char *)&kp->ki_tsize, - 3 * sizeof(kp->ki_rssize)); /* XXX */ -#else (void)kvm_read(kd, (u_long)proc.p_vmspace, (char *)&vmspace, sizeof(vmspace)); kp->ki_size = vmspace.vm_map.size; @@ -308,7 +300,6 @@ kvm_proclist(kd, what, arg, p, bp, maxcnt) kp->ki_tsize = vmspace.vm_tsize; kp->ki_dsize = vmspace.vm_dsize; kp->ki_ssize = vmspace.vm_ssize; -#endif switch (what & ~KERN_PROC_INC_THREAD) {