]> granicus.if.org Git - apache/commitdiff
* .gdbinit: Add dump_request_tree macro.
authorJoe Orton <jorton@apache.org>
Sat, 15 Jan 2011 15:21:54 +0000 (15:21 +0000)
committerJoe Orton <jorton@apache.org>
Sat, 15 Jan 2011 15:21:54 +0000 (15:21 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1059357 13f79535-47bb-0310-9956-ffa450edef68

.gdbinit

index 60169e69dc243f27621406e0c8496fb971d75d0c..a0fae7f59a1428a0e8926e4b9c0eeaa2c8d65eba 100644 (file)
--- 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