diff options
author | Joe Orton <jorton@apache.org> | 2010-06-07 20:43:06 +0200 |
---|---|---|
committer | Joe Orton <jorton@apache.org> | 2010-06-07 20:43:06 +0200 |
commit | e1119473f3d515fbe53425c056a7b8d07e70fdd8 (patch) | |
tree | 70d26a1df9b543556561e6421e4098942e41398b /.gdbinit | |
parent | Update CHANGES and bump minor MMN for new error log (diff) | |
download | apache2-e1119473f3d515fbe53425c056a7b8d07e70fdd8.tar.xz apache2-e1119473f3d515fbe53425c056a7b8d07e70fdd8.zip |
* .gdbinit: Add dump_filter_chain macro.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@952361 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '.gdbinit')
-rw-r--r-- | .gdbinit | 26 |
1 files changed, 26 insertions, 0 deletions
@@ -273,6 +273,32 @@ document dump_filters Print filter chain info end +define dump_filter_chain + set $r = $arg0 + set $f = $r->output_filters + while $f + if $f == $r->output_filters + printf "r->output_filters =>\n" + end + if $f == $r->proto_output_filters + printf "r->proto_output_filters =>\n" + end + if $f == $r->connection->output_filters + printf "r->connection->output_filters =>\n" + end + + printf " %s(0x%lx): type=%d, ctx=0x%lx, r=%s(0x%lx), c=0x%lx\n", \ + $f->frec->name, (unsigned long)$f, $f->frec->ftype, (unsigned long)$f->ctx, \ + $f->r == $r ? "r" : ($f->r == 0L ? "null" : \ + ($f->r == $r->main ? "r->main" : "????")), $f->r, $f->c + + set $f = $f->next + end +end +document dump_filter_chain + Print filter chain info given a request_rec pointer +end + define dump_process_rec set $p = $arg0 printf "process_rec=0x%lx:\n", (unsigned long)$p |