]> granicus.if.org Git - php/commitdiff
- Add compiler globals as
authorMarcus Boerger <helly@php.net>
Sun, 4 Jan 2009 15:20:02 +0000 (15:20 +0000)
committerMarcus Boerger <helly@php.net>
Sun, 4 Jan 2009 15:20:02 +0000 (15:20 +0000)
.gdbinit

index 87afb643e468f762a9a820619e6e99f60d5d1bf0..73eb43f257693e5351da96573ac5742640ea0cf9 100644 (file)
--- 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