Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-7]: src/sys/gdbscripts Pull up following revision(s) (requested b...
details: https://anonhg.NetBSD.org/src/rev/9f0e3c1042c8
branches: netbsd-7
changeset: 800238:9f0e3c1042c8
user: snj <snj%NetBSD.org@localhost>
date: Sat Jul 08 16:07:34 2017 +0000
description:
Pull up following revision(s) (requested by skrll in ticket #1428):
sys/gdbscripts/cpus: 1.2, 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 411e9472092d -r 9f0e3c1042c8 sys/gdbscripts/cpus
--- a/sys/gdbscripts/cpus Sat Jul 08 16:06:00 2017 +0000
+++ b/sys/gdbscripts/cpus Sat Jul 08 16:07:34 2017 +0000
@@ -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
Home |
Main Index |
Thread Index |
Old Index