]> granicus.if.org Git - php/commitdiff
Prevent warning when printing arrays in gdb
authorAdam Saponara <saponara@gmail.com>
Fri, 14 Aug 2015 18:22:55 +0000 (14:22 -0400)
committerAdam Saponara <saponara@gmail.com>
Fri, 14 Aug 2015 18:22:55 +0000 (14:22 -0400)
.gdbinit

index 7ac7d3cd7031d69babdc129f7997d0936c4e876f..4772acb4de1349dbdea4354e42bcfb5dab86fb0a 100644 (file)
--- a/.gdbinit
+++ b/.gdbinit
@@ -181,7 +181,7 @@ define ____printzv_contents
                printf "array: "
                if ! $arg1
                        set $ind = $ind + 1
-                       ____print_ht $zvalue->value.arr
+                       ____print_ht $zvalue->value.arr 1
                        set $ind = $ind - 1
                        set $i = $ind
                        while $i > 0