xref: /netbsd-src/sys/gdbscripts/cpus (revision 1b73604dfa16fa2c62b3423938f3c41a4ccc0a97)
1*1b73604dSskrll#	$NetBSD: cpus,v 1.3 2017/06/05 18:44:13 skrll Exp $
20a71f5feSad
30a71f5feSaddefine cpus
498483f23Sskrll	set $cpu = 0
50a71f5feSad	printf "\t     cpu id           curlwp\n"
698483f23Sskrll	while ($cpu < ncpu)
7*1b73604dSskrll		set $ci = cpu_infos[$cpu]
80a71f5feSad		printf "%16lx %2d %16lx\n", $ci, $ci->ci_cpuid, $ci->ci_curlwp
998483f23Sskrll		set $cpu++
100a71f5feSad	end
110a71f5feSadend
12