summaryrefslogtreecommitdiff
path: root/.gdbinit
diff options
context:
space:
mode:
authorJoe Orton <jorton@apache.org>2005-01-24 14:51:45 +0000
committerJoe Orton <jorton@apache.org>2005-01-24 14:51:45 +0000
commit6a41fe8e457615c3d6b013adc4faf3069d35d7a1 (patch)
tree65960dbbda091aecbf4aa419d50e6b1a0ca9f299 /.gdbinit
parentd6fb6be8e5d2e860072471b411cfa04447fd857e (diff)
downloadhttpd-6a41fe8e457615c3d6b013adc4faf3069d35d7a1.tar.gz
* .gdbinit (dump_table): Handle NULL value pointers.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@126286 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '.gdbinit')
-rw-r--r--.gdbinit6
1 files changed, 5 insertions, 1 deletions
diff --git a/.gdbinit b/.gdbinit
index 0fbe4a1a5a..672b392c86 100644
--- a/.gdbinit
+++ b/.gdbinit
@@ -6,7 +6,11 @@ define dump_table
set $n = ((apr_array_header_t *)$arg0)->nelts
set $i = 0
while $i < $n
- printf "[%u] '%s'='%s'\n", $i, $t[$i].key, $t[$i].val
+ if $t[$i].val == (void *)0L
+ printf "[%u] '%s'=>NULL\n", $i, $t[$i].key
+ else
+ printf "[%u] '%s'='%s'\n", $i, $t[$i].key, $t[$i].val
+ end
set $i = $i + 1
end
end