summaryrefslogtreecommitdiff
path: root/sys/gdbscripts/cpus
blob: 82014dad06585defe6e967eb2e0797d3e4743d44 (plain)
1
2
3
4
5
6
7
8
9
10
#	$NetBSD: cpus,v 1.1 2008/02/20 21:01:23 ad Exp $

define cpus
	set $ci = &cpu_info_primary
	printf "\t     cpu id           curlwp\n"
	while ($ci != 0)
		printf "%16lx %2d %16lx\n", $ci, $ci->ci_cpuid, $ci->ci_curlwp
		set $ci = $ci->ci_next
	end
end