]> granicus.if.org Git - php/commitdiff
Fixed dump_bt and printzv
authorDmitry Stogov <dmitry@zend.com>
Mon, 9 Feb 2015 19:43:22 +0000 (22:43 +0300)
committerDmitry Stogov <dmitry@zend.com>
Mon, 9 Feb 2015 19:43:22 +0000 (22:43 +0300)
.gdbinit

index 498099a411536f93d49cc1ce2a6c73c294f6ef4b..79dfd8f21bbf706654272035a591e617d5f92ab2 100644 (file)
--- a/.gdbinit
+++ b/.gdbinit
@@ -73,7 +73,7 @@ define dump_bt
 
                        set $callFrameSize = (sizeof(zend_execute_data) + sizeof(zval) - 1) / sizeof(zval)
 
-                       set $count = $ex->num_args
+                       set $count = $ex->This.u2.num_args
                        set $arg = 0
                        while $arg < $count
                                if $arg > 0
@@ -181,7 +181,7 @@ define ____printzv_contents
                printf "array: "
                if ! $arg1
                        set $ind = $ind + 1
-                       ____print_ht $zvalue->value.ht 1
+                       ____print_ht &$zvalue->value.arr->ht 1
                        set $ind = $ind - 1
                        set $i = $ind
                        while $i > 0