]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Merge r1866078 from trunk:
authorRuediger Pluem <rpluem@apache.org>
Mon, 9 Sep 2019 06:53:29 +0000 (06:53 +0000)
committerRuediger Pluem <rpluem@apache.org>
Mon, 9 Sep 2019 06:53:29 +0000 (06:53 +0000)
* Make it obsolete to supply a starting pool

  Improve dump_all_pools by making it obsolete to supply a starting pool.
  If the parameter is not supplied ap_pglobal which is a global symbol is
  used as starting pool.
  The pool parameter is still accepted and considered for backwards
  compatibility or if ap_pglobal cannot be resolved.

Submitted by: rpluem

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

.gdbinit

index 31ebe0a98ab615f6c7d48833a29106510d363ae8..336ea2ba3fc5f793e06bae68de14690866a674b3 100644 (file)
--- a/.gdbinit
+++ b/.gdbinit
@@ -452,14 +452,18 @@ define dump_one_pool
 end
 
 define dump_all_pools
-    set $root = $arg0
+    if $argc > 0
+        set $root = $arg0
+    else
+        set $root = ap_pglobal
+    end
     while $root->parent
         set $root = $root->parent
     end
     dump_pool_and_children $root
 end
 document dump_all_pools
-    Dump the whole pool hierarchy starting from apr_global_pool. Requires an arbitrary pool as starting parameter.
+    Dump the whole pool hierarchy starting from apr_global_pool. Optionally takes an arbitrary pool as starting parameter.
 end
 
 python