httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jor...@apache.org
Subject svn commit: r1059357 - /httpd/httpd/trunk/.gdbinit
Date Sat, 15 Jan 2011 15:21:56 GMT
Author: jorton
Date: Sat Jan 15 15:21:54 2011
New Revision: 1059357

URL: http://svn.apache.org/viewvc?rev=1059357&view=rev
Log:
* .gdbinit: Add dump_request_tree macro.

Modified:
    httpd/httpd/trunk/.gdbinit

Modified: httpd/httpd/trunk/.gdbinit
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/.gdbinit?rev=1059357&r1=1059356&r2=1059357&view=diff
==============================================================================
--- httpd/httpd/trunk/.gdbinit (original)
+++ httpd/httpd/trunk/.gdbinit Sat Jan 15 15:21:54 2011
@@ -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



Mime
View raw message