summaryrefslogtreecommitdiff
path: root/sapi/phpdbg/.gdbinit
diff options
context:
space:
mode:
Diffstat (limited to 'sapi/phpdbg/.gdbinit')
-rw-r--r--sapi/phpdbg/.gdbinit10
1 files changed, 10 insertions, 0 deletions
diff --git a/sapi/phpdbg/.gdbinit b/sapi/phpdbg/.gdbinit
new file mode 100644
index 0000000000..401a4bb88c
--- /dev/null
+++ b/sapi/phpdbg/.gdbinit
@@ -0,0 +1,10 @@
+define ____phpdbg_globals
+ if basic_functions_module.zts
+ if !$tsrm_ls
+ set $tsrm_ls = ts_resource_ex(0, 0)
+ end
+ set $phpdbg = ((zend_phpdbg_globals*) (*((void ***) $tsrm_ls))[phpdbg_globals_id-1])
+ else
+ set $phpdbg = phpdbg_globals
+ end
+end