Module Name:    src
Committed By:   martin
Date:           Tue Jun  6 09:28:26 UTC 2017

Modified Files:
        src/sys/gdbscripts [netbsd-8]: cpus

Log Message:
Pull up following revision(s) (requested by skrll in ticket #11):
        sys/gdbscripts/cpus: revision 1.2
        sys/gdbscripts/cpus: revision 1.3
Make cpus MI
Typo in previous


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.1.94.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.94.1
--- src/sys/gdbscripts/cpus:1.1	Wed Feb 20 21:01:23 2008
+++ src/sys/gdbscripts/cpus	Tue Jun  6 09:28:26 2017
@@ -1,10 +1,11 @@
-#	$NetBSD: cpus,v 1.1 2008/02/20 21:01:23 ad Exp $
+#	$NetBSD: cpus,v 1.1.94.1 2017/06/06 09:28:26 martin 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

Reply via email to