diff options
| author | ad <ad@NetBSD.org> | 2008-02-20 21:01:23 +0000 |
|---|---|---|
| committer | ad <ad@NetBSD.org> | 2008-02-20 21:01:23 +0000 |
| commit | 0a71f5fe7203940c05e8f0e195422ee87baf023e (patch) | |
| tree | 16308403f4f5460e697d64cdd72cfaf6d5f1bd0e /sys/gdbscripts | |
| parent | 9c235d70b69003ba8dd8c16d900f6f3b014531e1 (diff) | |
+cpus
Diffstat (limited to 'sys/gdbscripts')
| -rw-r--r-- | sys/gdbscripts/Makefile.inc | 4 | ||||
| -rw-r--r-- | sys/gdbscripts/cpus | 10 |
2 files changed, 12 insertions, 2 deletions
diff --git a/sys/gdbscripts/Makefile.inc b/sys/gdbscripts/Makefile.inc index f98386ef4d1..3d5743cfd6c 100644 --- a/sys/gdbscripts/Makefile.inc +++ b/sys/gdbscripts/Makefile.inc @@ -1,3 +1,3 @@ -# $NetBSD: Makefile.inc,v 1.3 2008/02/20 20:56:35 ad Exp $ +# $NetBSD: Makefile.inc,v 1.4 2008/02/20 21:01:23 ad Exp $ -SYS_GDBINIT= bdump kdump lwps msgbuf pgrpdump procs vchain vdump +SYS_GDBINIT= bdump cpus kdump lwps msgbuf pgrpdump procs vchain vdump diff --git a/sys/gdbscripts/cpus b/sys/gdbscripts/cpus new file mode 100644 index 00000000000..82014dad065 --- /dev/null +++ b/sys/gdbscripts/cpus @@ -0,0 +1,10 @@ +# $NetBSD: cpus,v 1.1 2008/02/20 21:01:23 ad Exp $ + +define cpus + set $ci = &cpu_info_primary + printf "\t cpu id curlwp\n" + while ($ci != 0) + printf "%16lx %2d %16lx\n", $ci, $ci->ci_cpuid, $ci->ci_curlwp + set $ci = $ci->ci_next + end +end |
