mirror of
https://github.com/php/php-src.git
synced 2025-08-15 13:38:49 +02: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:
parent
39d8fc1edc
commit
50f476591f
1 changed files with 1 additions and 3 deletions
4
.gdbinit
4
.gdbinit
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue