summaryrefslogtreecommitdiffstats
path: root/.gdbinit
diff options
context:
space:
mode:
authorDoug MacEachern <dougm@apache.org>2001-11-22 02:07:38 +0100
committerDoug MacEachern <dougm@apache.org>2001-11-22 02:07:38 +0100
commita0f56323d11a70b3d492fb57b3ea6ede357f23b3 (patch)
tree2e90e277ee077c4acdb1cfa5cd15b37a88342b03 /.gdbinit
parentremove AP_CTX_* macros which are no longer used (diff)
downloadapache2-a0f56323d11a70b3d492fb57b3ea6ede357f23b3.tar.xz
apache2-a0f56323d11a70b3d492fb57b3ea6ede357f23b3.zip
macros for dumping the list of server_recs
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92116 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '.gdbinit')
-rw-r--r--.gdbinit32
1 files changed, 32 insertions, 0 deletions
diff --git a/.gdbinit b/.gdbinit
index 5a5c578c4c..28244c75b2 100644
--- a/.gdbinit
+++ b/.gdbinit
@@ -84,3 +84,35 @@ end
document dump_filters
Print filter chain info
end
+
+define dump_process_rec
+ set $p = $arg0
+ printf "process_rec=0x%lx:\n", (unsigned long)$p
+ printf " pool=0x%lx, pconf=0x%lx\n", \
+ (unsigned long)$p->pool, (unsigned long)$p->pconf
+end
+document dump_process_rec
+ Print process_rec info
+end
+
+define dump_server_rec
+ set $s = $arg0
+ printf "name=%s:%d\n", \
+ $s->server_hostname, $s->port
+ dump_process_rec($s->process)
+end
+document dump_server_rec
+ Print server_rec info
+end
+
+define dump_servers
+ set $s = $arg0
+ while $s
+ dump_server_rec($s)
+ printf "\n"
+ set $s = $s->next
+ end
+end
+document dump_servers
+ Print server_rec list info
+end