From: Derick Rethans Date: Sat, 1 Aug 2009 12:55:36 +0000 (+0000) Subject: - Added a function to print all CVs from the local scope. X-Git-Tag: php-5.4.0alpha1~191^2~2898 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bf79f08084969471a2ad2206173a6ff9118d8599;p=php - Added a function to print all CVs from the local scope. --- diff --git a/.gdbinit b/.gdbinit index f91fda2a9e..a10bc62ce9 100644 --- a/.gdbinit +++ b/.gdbinit @@ -125,6 +125,25 @@ document printt If unicode is 1 the function calls printu, else it uses printf. end +define print_cvs + ____executor_globals + set $p = $eg.current_execute_data.CVs + set $c = $eg.current_execute_data.op_array.last_var + set $v = $eg.current_execute_data.op_array.vars + set $i = 0 + + printf "Compiled variables count: %d\n", $c + while $i < $c + printf "%d = %s\n", $i, $v[$i].name + if $p[$i] != 0 + printzv *$p[$i] + else + printf "*uninitialized*\n" + end + set $i = $i + 1 + end +end + define dump_bt set $t = $arg0 while $t