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