summaryrefslogtreecommitdiff
path: root/.gdbinit
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2009-01-04 15:20:19 +0000
committerMarcus Boerger <helly@php.net>2009-01-04 15:20:19 +0000
commitedc7e3054e2510dfb910b3725e4b81f24de331f2 (patch)
treeed59afadaed951b14455a356edb8c1edb1f4681e /.gdbinit
parent64b5048d809362170ad66a31c1ad17718c20c56f (diff)
downloadphp-git-edc7e3054e2510dfb910b3725e4b81f24de331f2.tar.gz
- MFH Add compiler globals as
Diffstat (limited to '.gdbinit')
-rw-r--r--.gdbinit3
1 files changed, 3 insertions, 0 deletions
diff --git a/.gdbinit b/.gdbinit
index 3bde459837..4a17d50896 100644
--- a/.gdbinit
+++ b/.gdbinit
@@ -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