Skip to content

Commit f33a14a

Browse files
committed
- Add compiler globals as
1 parent 3a5b449 commit f33a14a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.gdbinit

+3
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,16 @@ define ____executor_globals
22
if basic_functions_module.zts
33
set $tsrm_ls = ts_resource_ex(0, 0)
44
set $eg = ((zend_executor_globals) (*((void ***) $tsrm_ls))[executor_globals_id-1])
5+
set $cg = ((zend_compiler_globals) (*((void ***) $tsrm_ls))[compiler_globals_id-1])
56
else
67
set $eg = executor_globals
8+
set $cg = compiler_globals
79
end
810
end
911

1012
document ____executor_globals
1113
portable way of accessing executor_globals, set $eg
14+
this also sets compiler_globals to $cg
1215
ZTS detection is automatically based on ext/standard module struct
1316
end
1417

0 commit comments

Comments
 (0)