]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
.gdbinit: fix dump_table indentation [skip ci]
authorYann Ylavic <ylavic@apache.org>
Fri, 29 May 2020 09:07:18 +0000 (09:07 +0000)
committerYann Ylavic <ylavic@apache.org>
Fri, 29 May 2020 09:07:18 +0000 (09:07 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1878265 13f79535-47bb-0310-9956-ffa450edef68

.gdbinit

index 62202aacfb53ec4aa6b5490f400c83cd600b93ca..085fa7bc27c634bcb1f6814e964692bebbe9e151 100644 (file)
--- a/.gdbinit
+++ b/.gdbinit
@@ -6,12 +6,12 @@ define dump_table
     set $n = ((apr_array_header_t *)$arg0)->nelts
     set $i = 0
     while $i < $n
-    if $t[$i].val == (void *)0L
-        printf "[%u] '%s'=>NULL\n", $i, $t[$i].key
-    else
-        printf "[%u] '%s'='%s' [%p]\n", $i, $t[$i].key, $t[$i].val, $t[$i].val
-    end
-    set $i = $i + 1
+        if $t[$i].val == (void *)0L
+            printf "[%u] '%s'=>NULL\n", $i, $t[$i].key
+        else
+            printf "[%u] '%s'='%s' [%p]\n", $i, $t[$i].key, $t[$i].val, $t[$i].val
+        end
+        set $i = $i + 1
     end
 end
 document dump_table