summaryrefslogtreecommitdiff
path: root/.gdbinit
diff options
context:
space:
mode:
Diffstat (limited to '.gdbinit')
-rw-r--r--.gdbinit8
1 files changed, 6 insertions, 2 deletions
diff --git a/.gdbinit b/.gdbinit
index 31ebe0a98a..336ea2ba3f 100644
--- 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