NetBSD/sys/gdbscripts/cpus

11 lines
253 B
Plaintext
Raw Normal View History

2008-02-21 00:01:23 +03:00
# $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