No empty .Rs/.Re
[netbsd-mini2440.git] / sys / gdbscripts / pgrpdump
bloba0351771f12e1176d79aa7e0836d5532c0e914ea
1 #       $NetBSD$
3 #       @(#)pgrpdump    8.1 (Berkeley) 6/10/93
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
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