summaryrefslogtreecommitdiff
path: root/.gdbinit
diff options
context:
space:
mode:
authorRuediger Pluem <rpluem@apache.org>2020-06-30 19:34:10 +0000
committerRuediger Pluem <rpluem@apache.org>2020-06-30 19:34:10 +0000
commitae6c0815febe69a1868bf55547fe1275f1c4267c (patch)
tree6eb567d56641a23a262a09fbb7df64fe92fd3f2e /.gdbinit
parentc7972307ee1c89e6efe8091e332a4f618b7d5d43 (diff)
downloadhttpd-ae6c0815febe69a1868bf55547fe1275f1c4267c.tar.gz
* Let dump_brigade print the length of the brigade
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1879381 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '.gdbinit')
-rw-r--r--.gdbinit5
1 files changed, 5 insertions, 0 deletions
diff --git a/.gdbinit b/.gdbinit
index 085fa7bc27..21a0a13596 100644
--- a/.gdbinit
+++ b/.gdbinit
@@ -281,13 +281,18 @@ define dump_brigade
end
set $j = 0
+ set $brigade_length = 0
while $bucket != $sentinel
printf "%2d", $j
dump_bucket_ex $bucket 1
set $j = $j + 1
+ if $bucket->length > 0
+ set $brigade_length = $brigade_length + $bucket->length
+ end
set $bucket = $bucket->link.next
end
printf "end of brigade\n"
+ printf "Length of brigade (excluding buckets of unknown length): %u\n", $brigade_length
end
document dump_brigade
Print bucket brigade info