]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Merge r1808671 from trunk:
authorRuediger Pluem <rpluem@apache.org>
Fri, 6 Oct 2017 07:04:34 +0000 (07:04 +0000)
committerRuediger Pluem <rpluem@apache.org>
Fri, 6 Oct 2017 07:04:34 +0000 (07:04 +0000)
* Correctly dump pools that have no tag
Submitted by: rpluem

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1811295 13f79535-47bb-0310-9956-ffa450edef68

.gdbinit

index e28763d7d3c1af88581ab9e12212266823e20f65..0e2d44ecd5cc2e7c70bb4fcd75212c320a8dd24c 100644 (file)
--- a/.gdbinit
+++ b/.gdbinit
@@ -404,7 +404,13 @@ define dump_one_pool
             set $done = 1
         end
     end
-    printf "Pool '%s' [%p]: %d/%d free (%d blocks)\n", $p->tag, $p, $free, $size, $nodes
+    printf "Pool '"
+    if $p->tag
+        printf "%s", $p->tag
+    else
+        printf "no tag"
+    end
+    printf "' [%p]: %d/%d free (%d blocks)\n", $p, $free, $size, $nodes
 end
 
 # Set sane defaults for common signals: