Skip to content

Commit

Permalink
Add print zend string function to gdbinit
Browse files Browse the repository at this point in the history
  • Loading branch information
mhagstrand authored and nikic committed Jan 9, 2017
1 parent 28f2959 commit 9ad3413
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .gdbinit
Expand Up @@ -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
Expand Down

0 comments on commit 9ad3413

Please sign in to comment.