]> granicus.if.org Git - apache/blob - .gdbinit
PR:
[apache] / .gdbinit
1 # gdb macros which may be useful for folks using gdb to debug
2 # apache.  Delete it if it bothers you.
3
4 define dump_table
5     set $t = (table_entry *)((array_header *)$arg0)->elts
6     set $n = ((array_header *)$arg0)->nelts
7     set $i = 0
8     while $i < $n
9         printf "[%u] '%s'='%s'\n", $i, $t[$i].key, $t[$i].val
10         set $i = $i + 1
11     end
12 end
13 document dump_table
14     Print the key/value pairs in a table.
15 end
16
17
18 define rh
19         run -f /home/dgaudet/ap2/conf/mpm.conf
20 end
21
22 define dump_string_array
23     set $a = (char **)((array_header *)$arg0)->elts
24     set $n = (int)((array_header *)$arg0)->nelts
25     set $i = 0
26     while $i < $n
27         printf "[%u] '%s'\n", $i, $a[$i]
28         set $i = $i + 1
29     end
30 end
31 document dump_string_array
32     Print all of the elements in an array of strings.
33 end