repo.or.cz
/
netbsd-mini2440.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
No empty .Rs/.Re
[netbsd-mini2440.git]
/
sys
/
gdbscripts
/
pgrpdump
blob
a0351771f12e1176d79aa7e0836d5532c0e914ea
1
# $NetBSD$
2
3
# @(#)pgrpdump 8.1 (Berkeley) 6/10/93
4
5
define allpgrps
6
set $lim = pidhashmask + 1
7
set $i = 0
8
while ($i < $lim)
9
if (pgrphash[$i])
10
printf "--- pgrphash[%d] ---\n", $i
11
pgrpchain pgrphash[$i]
12
end
13
set $i++
14
end
15
end
16
17
define pgrpchain
18
set $pgrp = (struct pgrp *)$arg0
19
while ($pgrp)
20
print *$pgrp
21
set $pgrp = $pgrp->pg_hforw
22
end
23
end