Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/gdbscripts Make cpus MI
details: https://anonhg.NetBSD.org/src/rev/a9b76727ba3e
branches: trunk
changeset: 354141:a9b76727ba3e
user: skrll <skrll%NetBSD.org@localhost>
date: Mon Jun 05 18:34:16 2017 +0000
description:
Make cpus MI
diffstat:
sys/gdbscripts/cpus | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diffs (19 lines):
diff -r 63a3f2d40b15 -r a9b76727ba3e sys/gdbscripts/cpus
--- a/sys/gdbscripts/cpus Mon Jun 05 17:11:10 2017 +0000
+++ b/sys/gdbscripts/cpus Mon Jun 05 18:34:16 2017 +0000
@@ -1,10 +1,11 @@
-# $NetBSD: cpus,v 1.1 2008/02/20 21:01:23 ad Exp $
+# $NetBSD: cpus,v 1.2 2017/06/05 18:34:16 skrll 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