summaryrefslogtreecommitdiff
path: root/sys/gdbscripts/vdump
blob: 3605060b6b127c7d2f8beb91b16fda7674329f7c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#	$NetBSD: vdump,v 1.2 1997/02/12 23:35:11 gwr Exp $

#	@(#)vdump	8.1 (Berkeley) 6/10/93
#
# dump the vnode list

define dumpvnodes

	set $vp = (struct vnode *)$arg0
	while ($vp)
		printf "vnode=0x%x freef=0x%x mountf=0x%x usecount=%d\n", $vp, $vp->v_freef, $vp->v_mountf, $vp->v_usecount
		set $vp = (struct vnode *)$vp->v_freef
	end
end