Skip to content

Commit

Permalink
- MFH Add compiler globals as
Browse files Browse the repository at this point in the history
  • Loading branch information
helly25 committed Jan 4, 2009
1 parent 64b5048 commit edc7e30
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gdbinit
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,16 @@ define ____executor_globals
if basic_functions_module.zts
set $tsrm_ls = ts_resource_ex(0, 0)
set $eg = ((zend_executor_globals) (*((void ***) $tsrm_ls))[executor_globals_id-1])
set $cg = ((zend_compiler_globals) (*((void ***) $tsrm_ls))[compiler_globals_id-1])
else
set $eg = executor_globals
set $cg = compiler_globals
end
end

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

Expand Down

0 comments on commit edc7e30

Please sign in to comment.