summaryrefslogtreecommitdiffstats
path: root/.gdbinit
diff options
context:
space:
mode:
authorJoe Orton <jorton@apache.org>2011-01-15 16:21:54 +0100
committerJoe Orton <jorton@apache.org>2011-01-15 16:21:54 +0100
commit2cbd2e5add355fcab7aaa4533a88277b5da7be0b (patch)
tree07592ad8c61c90247bc8a6905a8e712d957570e5 /.gdbinit
parent* docs/manual/mod/mod_rewrite.xml: Fix docs to match code; only (diff)
downloadapache2-2cbd2e5add355fcab7aaa4533a88277b5da7be0b.tar.xz
apache2-2cbd2e5add355fcab7aaa4533a88277b5da7be0b.zip
* .gdbinit: Add dump_request_tree macro.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1059357 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '.gdbinit')
-rw-r--r--.gdbinit10
1 files changed, 10 insertions, 0 deletions
diff --git a/.gdbinit b/.gdbinit
index 60169e69dc..a0fae7f59a 100644
--- a/.gdbinit
+++ b/.gdbinit
@@ -333,6 +333,16 @@ document dump_servers
Print server_rec list info
end
+define dump_request_tree
+ set $r = $arg0
+ set $i
+ while $r
+ printf "r=(0x%lx): uri=%s, handler=%s, r->main=0x%lx\n", \
+ $r, $r->unparsed_uri, $r->handler ? $r->handler : "(none)", $r->main
+ set $r = $r->main
+ end
+end
+
define dump_allocator
printf "Allocator current_free_index = %d, max_free_index = %d\n", \
($arg0)->current_free_index, ($arg0)->max_free_index