Home | History | Annotate | Line # | Download | only in gdbscripts
vdump revision 1.1
      1  1.1  gwr #	@(#)vdump	8.1 (Berkeley) 6/10/93
      2  1.1  gwr #
      3  1.1  gwr # dump the vnode list
      4  1.1  gwr 
      5  1.1  gwr define dumpvnodes
      6  1.1  gwr 
      7  1.1  gwr 	set $vp = (struct vnode *)$arg0
      8  1.1  gwr 	while ($vp)
      9  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
     10  1.1  gwr 		set $vp = (struct vnode *)$vp->v_freef
     11  1.1  gwr 	end
     12  1.1  gwr end
     13