set the ts resource, it is impossible for gdb to
call ts_resource_ex while no process is running,
but we could get the resource from the argument
of frame info.
portable way of accessing executor_globals, set as $eg
this also sets compiler_globals to $cg
ZTS detection is automatically based on ext/standard module struct
Prints the compiled variables and their values.
If a zend_execute_data pointer is set, this will print the compiled
variables of that scope. If no parameter is used, it will use
current_execute_data for scope.
Usage: print_cvs [(zend_execute_data*)ped]
dumps execution stack of PHP code.
Usage: dump_bt (zend_execute_data*)ped
Example: dump_bt executor_globals.current_execute_data
See also: zbacktrace
prints zval address and contents
Usage: printzv (zval*)pzval
Prints the global variables
Usage: print_global_vars
Dumps elements of Constants HashTable
Usage: print_const_table (HashTable*)pct
Example: print_const_table executor_globals.zend_constants
dumps elements of HashTable made of zval
Usage: print_ht (HashTable*)pht
dumps elements of HashTable made of pointers
Usage: print_htptr (HashTable*)pht
dumps elements of HashTable made of strings
Usage: print_htstr (HashTable*)pht
dumps a function table (HashTable)
Usage: print_ft (HashTable*)pft
Usage: print_inh (zend_class_entry*)pce
Takes a pointer to an object's property and prints the property information
Usage: print_pi <ptr>
print type and content of znode.
Usage: printzn (znode*)pznode
Dump operands of the current opline
Usage: printzops
Print the length and contents of a zend string
Usage: print_zstr (zend_string*)ptr [max length]
prints backtrace.
This command is almost a short cut for
> (gdb) ____executor_globals
> (gdb) dump_bt $eg.current_execute_data
lookup a refcounted in root
Usage: lookup_root [ptr].
Print opline information
Usage: dump_opline (zend_op*)opline
Dump currently executed opline information
Usage: dump_current_opline
Dump opline information in an op_array
Usage: dump_op_array (zend_op_array*)poparray
Dump opline information of current function
Usage: dump_current_op_array
Set breakpoint at opline->handler
Usage: bp_opline (zend_op*)opline
Set breakpoint at each opline handler in op_array
Usage: bp_op_array (zend_op_array*)poparray
Set breakpoint at each opline handler in current op_array
Usage: bp_current_op_array