mirror of
https://github.com/apache/httpd.git
synced 2025-08-16 17:04:42 +00:00
Apache 1.3.9 baseline for the Apache 2.0 repository.
Obtained from: Apache 1.3.9 (minus unused files), tag APACHE_1_3_9 Submitted by: Apache Group git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@83748 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
28
.gdbinit
Normal file
28
.gdbinit
Normal file
@ -0,0 +1,28 @@
|
||||
# gdb macros which may be useful for folks using gdb to debug
|
||||
# apache. Delete it if it bothers you.
|
||||
|
||||
define dump_table
|
||||
set $t = (table_entry *)((array_header *)$arg0)->elts
|
||||
set $n = ((array_header *)$arg0)->nelts
|
||||
set $i = 0
|
||||
while $i < $n
|
||||
printf "[%u] '%s'='%s'\n", $i, $t[$i].key, $t[$i].val
|
||||
set $i = $i + 1
|
||||
end
|
||||
end
|
||||
document dump_table
|
||||
Print the key/value pairs in a table.
|
||||
end
|
||||
|
||||
define dump_string_array
|
||||
set $a = (char **)((array_header *)$arg0)->elts
|
||||
set $n = (int)((array_header *)$arg0)->nelts
|
||||
set $i = 0
|
||||
while $i < $n
|
||||
printf "[%u] '%s'\n", $i, $a[$i]
|
||||
set $i = $i + 1
|
||||
end
|
||||
end
|
||||
document dump_string_array
|
||||
Print all of the elements in an array of strings.
|
||||
end
|
Reference in New Issue
Block a user