Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-8]: src/sys/gdbscripts Pull up following revision(s) (requested b...
details: https://anonhg.NetBSD.org/src/rev/db08774706dc
branches: netbsd-8
changeset: 850702:db08774706dc
user: martin <martin%NetBSD.org@localhost>
date: Tue Jun 06 09:28:26 2017 +0000
description:
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
diffstat:
sys/gdbscripts/cpus | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diffs (19 lines):
diff -r 706eb154af22 -r db08774706dc sys/gdbscripts/cpus
--- a/sys/gdbscripts/cpus Tue Jun 06 09:25:49 2017 +0000
+++ b/sys/gdbscripts/cpus Tue Jun 06 09:28:26 2017 +0000
@@ -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
Home |
Main Index |
Thread Index |
Old Index