Home | History | Annotate | Line # | Download | only in gdbscripts
vdump revision 1.2
      1  1.2  gwr #	$NetBSD: vdump,v 1.2 1997/02/12 23:35:11 gwr Exp $
      2  1.2  gwr 
      3  1.1  gwr #	@(#)vdump	8.1 (Berkeley) 6/10/93
      4  1.1  gwr #
      5  1.1  gwr # dump the vnode list
      6  1.1  gwr 
      7  1.1  gwr define dumpvnodes
      8  1.1  gwr 
      9  1.1  gwr 	set $vp = (struct vnode *)$arg0
     10  1.1  gwr 	while ($vp)
     11  1.1  gwr 		printf "vnode=0x%x freef=0x%x mountf=0x%x usecount=%d\n", $vp, $vp->v_freef, $vp->v_mountf, $vp->v_usecount
     12  1.1  gwr 		set $vp = (struct vnode *)$vp->v_freef
     13  1.1  gwr 	end
     14  1.1  gwr end
     15