xref: /PHP-8.0/sapi/phpdbg/.gdbinit (revision cee72c13)
1define ____phpdbg_globals
2	if basic_functions_module.zts
3		if !$tsrm_ls
4			set $tsrm_ls = ts_resource_ex(0, 0)
5		end
6		set $phpdbg = ((zend_phpdbg_globals*) (*((void ***) $tsrm_ls))[phpdbg_globals_id-1])
7	else
8		set $phpdbg = phpdbg_globals
9	end
10end
11