]> granicus.if.org Git - apache/commitdiff
* .gdbinit (dump_table): Handle NULL value pointers.
authorJoe Orton <jorton@apache.org>
Mon, 24 Jan 2005 14:51:45 +0000 (14:51 +0000)
committerJoe Orton <jorton@apache.org>
Mon, 24 Jan 2005 14:51:45 +0000 (14:51 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@126286 13f79535-47bb-0310-9956-ffa450edef68

.gdbinit

index 0fbe4a1a5ae5f7931fff5abe9d69298b9c58cdcc..672b392c86ff51f749f713551f1cd3f92a362a94 100644 (file)
--- 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