summaryrefslogtreecommitdiff
path: root/gdbinit
blob: 1445f312261e2203b9284ae7a9a08e5a4e8d221c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
set print pretty on
set prompt \001\033[01;31m\002gdb $ \001\033[0m\002

define dtailq
 set $next = $arg0.tqh_first
 while ($next != 0)
  p $next
  p *$next
  set $next = $next.$arg1.tqe_next
 end
end

define dslist
 set $next = $arg0.slh_first
 while ($next != 0)
  p $next
  set $next = $next.$arg1.sle_next
 end
end