mirror of
https://github.com/bdnugget/php-src.git
synced 2026-11-07 09:17:29 +00:00
.gdbinit: make zbacktrace show the correct stack when switching threads
I found this mainly to be a problem when working with threading extensions. zbacktrace doesn't show the correct stack when switching threads. Closes GH-6814.
This commit is contained in:
1 parent
39d8fc1edc
commit
50f476591f
1 file changed
+1
-3
@@ -11,9 +11,7 @@ end
|
||||
|
||||
define ____executor_globals
|
||||
if basic_functions_module.zts
|
||||
if !$tsrm_ls
|
||||
set $tsrm_ls = ts_resource_ex(0, 0)
|
||||
end
|
||||
set $tsrm_ls = _tsrm_ls_cache
|
||||
set $eg = ((zend_executor_globals*) (*((void ***) $tsrm_ls))[executor_globals_id-1])
|
||||
set $cg = ((zend_compiler_globals*) (*((void ***) $tsrm_ls))[compiler_globals_id-1])
|
||||
set $eg_ptr = $eg
|
||||
|
||||
Reference in new issue
Block a user