Module Name: src
Committed By: snj
Date: Sat Jul 8 16:07:34 UTC 2017
Modified Files:
src/sys/gdbscripts [netbsd-7]: cpus
Log Message:
Pull up following revision(s) (requested by skrll in ticket #1428):
sys/gdbscripts/cpus: 1.2, 1.3
Make cpus MI
--
Typo in previous
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.1.76.1 src/sys/gdbscripts/cpus
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/gdbscripts/cpus
diff -u src/sys/gdbscripts/cpus:1.1 src/sys/gdbscripts/cpus:1.1.76.1
--- src/sys/gdbscripts/cpus:1.1 Wed Feb 20 21:01:23 2008
+++ src/sys/gdbscripts/cpus Sat Jul 8 16:07:34 2017
@@ -1,10 +1,11 @@
-# $NetBSD: cpus,v 1.1 2008/02/20 21:01:23 ad Exp $
+# $NetBSD: cpus,v 1.1.76.1 2017/07/08 16:07:34 snj Exp $
define cpus
- set $ci = &cpu_info_primary
+ set $cpu = 0
printf "\t cpu id curlwp\n"
- while ($ci != 0)
+ while ($cpu < ncpu)
+ set $ci = cpu_infos[$cpu]
printf "%16lx %2d %16lx\n", $ci, $ci->ci_cpuid, $ci->ci_curlwp
- set $ci = $ci->ci_next
+ set $cpu++
end
end