mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
.gdbinit: Fix printing of variable names in print_cvs (#20077)
Previously only the first character of each variable was printed.
This commit is contained in:
2
.gdbinit
2
.gdbinit
@@ -42,7 +42,7 @@ define print_cvs
|
||||
|
||||
printf "Compiled variables count: %d\n\n", $cv_count
|
||||
while $cv_idx < $cv_count
|
||||
printf "[%d] '%s'\n", $cv_idx, $cv[$cv_idx].val
|
||||
printf "[%d] '$%s'\n", $cv_idx, $cv[$cv_idx].val@$cv[$cv_idx].len
|
||||
set $zvalue = ((zval *) $cv_ex_ptr) + $callFrameSize + $cv_idx
|
||||
printzv $zvalue
|
||||
set $cv_idx = $cv_idx + 1
|
||||
|
||||
Reference in New Issue
Block a user