1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Add print zend string function to gdbinit

This commit is contained in:
Mitch Hagstrand
2017-01-09 13:10:57 -08:00
committed by Nikita Popov
parent 28f2959b83
commit 9ad3413190

View File

@@ -554,6 +554,18 @@ document printzops
dump operands of the current opline
end
define print_zstr
set $zstr = (zend_string *)$arg0
printf "string(%d) ", $zstr->len
____print_str $zstr->val $zstr->len
printf "\n"
end
document print_zstr
print the length and contents of a zend string
usage: print_zstr [ptr]
end
define zbacktrace
____executor_globals
dump_bt $eg.current_execute_data