[BACK]Return to devs CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / sys / gdbscripts

File: [cvs.NetBSD.org] / src / sys / gdbscripts / devs (download)

Revision 1.2, Thu May 9 07:59:49 2019 UTC (21 months, 2 weeks ago) by mrg
Branch: MAIN
CVS Tags: thorpej-futex-base, thorpej-futex, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, netbsd-9-base, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, is-mlppp-base, is-mlppp, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache, HEAD
Branch point for: phil-wifi
Changes since 1.1: +5 -1 lines

document 'devs' and 'procs' commands.

#	$NetBSD: devs,v 1.2 2019/05/09 07:59:49 mrg Exp $

define devs
	set $i = 0

	while ($i < 2)
		if ($i == 0)
			set $d = alldevs.tqh_first
		if ($d)
			printf "        device_t            parent           private  dv_xname\n"
		while ($d)
			printf "%16lx  %16lx  %16lx  %s\n", \
				$d, $d->dv_parent, $d->dv_private, $d->dv_xname
			set $d = $d->dv_list.tqe_next
		set $i++
document devs
dump a list of all devices known on the system with their name,
and these pointers: this device, parent device, device private.