Browse Source

.gdbinit: Fix printing of variable names in `print_cvs` (#20077)

Previously only the first character of each variable was printed.
PHP-8.3.27
Tim Düsterhus 2 months ago
committed by GitHub
parent
commit
9d9b73a3f0
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 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

Loading…
Cancel
Save