From 2cbd2e5add355fcab7aaa4533a88277b5da7be0b Mon Sep 17 00:00:00 2001 From: Joe Orton Date: Sat, 15 Jan 2011 15:21:54 +0000 Subject: * .gdbinit: Add dump_request_tree macro. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1059357 13f79535-47bb-0310-9956-ffa450edef68 --- .gdbinit | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to '.gdbinit') 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 -- cgit v1.2.3