From ae6c0815febe69a1868bf55547fe1275f1c4267c Mon Sep 17 00:00:00 2001 From: Ruediger Pluem Date: Tue, 30 Jun 2020 19:34:10 +0000 Subject: * 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 --- .gdbinit | 5 +++++ 1 file changed, 5 insertions(+) (limited to '.gdbinit') 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 -- cgit v1.2.3