summaryrefslogtreecommitdiff
path: root/sapi/phpdbg/.gdbinit
diff options
context:
space:
mode:
authorBob Weinand <bobwei9@hotmail.com>2013-12-20 14:27:51 +0100
committerBob Weinand <bobwei9@hotmail.com>2013-12-20 14:27:51 +0100
commitcee72c13d7defa8a51c33e2b6ed2c73d85fd4c2a (patch)
treec64561a3e7385a22ac6d416fb3252208b3a1392c /sapi/phpdbg/.gdbinit
parent436ca2d019ed3ec3183129f9a3a7e329446077e9 (diff)
parentef3e0119b8437c855049ee3a67b0317dce055669 (diff)
downloadphp-git-cee72c13d7defa8a51c33e2b6ed2c73d85fd4c2a.tar.gz
Merge branch 'master' of sapi/phpdbg into PHP-5.6
Including phpdbg.
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