1 # gdb macros which may be useful for folks using gdb to debug
2 # apache. Delete it if it bothers you.
5 set $t = (table_entry *)((array_header *)$arg0)->elts
6 set $n = ((array_header *)$arg0)->nelts
9 printf "[%u] '%s'='%s'\n", $i, $t[$i].key, $t[$i].val
14 Print the key/value pairs in a table.
19 run -f /home/dgaudet/ap2/conf/mpm.conf
22 define dump_string_array
23 set $a = (char **)((array_header *)$arg0)->elts
24 set $n = (int)((array_header *)$arg0)->nelts
27 printf "[%u] '%s'\n", $i, $a[$i]
31 document dump_string_array
32 Print all of the elements in an array of strings.