1
0
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:
Tim Düsterhus
2025-10-06 20:17:53 +02:00
committed by GitHub
parent b7aeb0a69f
commit 9d9b73a3f0

View File

@@ -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