diff options
author | Joe Orton <jorton@apache.org> | 2005-01-24 14:51:45 +0000 |
---|---|---|
committer | Joe Orton <jorton@apache.org> | 2005-01-24 14:51:45 +0000 |
commit | 6a41fe8e457615c3d6b013adc4faf3069d35d7a1 (patch) | |
tree | 65960dbbda091aecbf4aa419d50e6b1a0ca9f299 /.gdbinit | |
parent | d6fb6be8e5d2e860072471b411cfa04447fd857e (diff) | |
download | httpd-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-- | .gdbinit | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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 |