.gdbinit revision ff8c037448da2a14a00420b285ea3b8f2f4738e0
0N/A# gdb macros which may be useful for folks using gdb to debug
4956N/A# apache. Delete it if it bothers you.
0N/A
0N/Adefine dump_table
0N/A set $t = (table_entry *)((array_header *)$arg0)->elts
0N/A set $n = ((array_header *)$arg0)->nelts
2362N/A set $i = 0
0N/A while $i < $n
2362N/A printf "[%u] '%s'='%s'\n", $i, $t[$i].key, $t[$i].val
0N/A set $i = $i + 1
0N/A end
0N/Aend
0N/Adocument dump_table
0N/A Print the key/value pairs in a table.
0N/Aend
0N/A
0N/A
0N/Adefine rh
0N/A run -f /home/dgaudet/ap2/conf/mpm.conf
0N/Aend
2362N/A
2362N/Adefine dump_string_array
2362N/A set $a = (char **)((array_header *)$arg0)->elts
0N/A set $n = (int)((array_header *)$arg0)->nelts
0N/A set $i = 0
4956N/A while $i < $n
4956N/A printf "[%u] '%s'\n", $i, $a[$i]
0N/A set $i = $i + 1
0N/A end
0N/Aend
0N/Adocument dump_string_array
0N/A Print all of the elements in an array of strings.
0N/Aend
0N/A