summaryrefslogtreecommitdiff
path: root/.gdbinit
diff options
context:
space:
mode:
authorRuediger Pluem <rpluem@apache.org>2017-09-18 07:23:43 +0000
committerRuediger Pluem <rpluem@apache.org>2017-09-18 07:23:43 +0000
commitcbfd1418734fc61562c850ea3a21be1722610454 (patch)
treed48ef3dd9b8f1b84d0254055a25a48144f09b13a /.gdbinit
parent912b2b6b547e10e47fecbd0ad181812c48cb2a72 (diff)
downloadhttpd-cbfd1418734fc61562c850ea3a21be1722610454.tar.gz
* Correctly dump pools that have no tag
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1808671 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '.gdbinit')
-rw-r--r--.gdbinit8
1 files changed, 7 insertions, 1 deletions
diff --git a/.gdbinit b/.gdbinit
index e28763d7d3..0e2d44ecd5 100644
--- 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: