Skip to content

Commit 49e9d8f

Browse files
committed
Fix wrong type in the marco of fetching thread globals
1 parent 843fa04 commit 49e9d8f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.gdbinit

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
define ____executor_globals
22
if basic_functions_module.zts
33
set $tsrm_ls = ts_resource_ex(0, 0)
4-
set $eg = ((zend_executor_globals) (*((void ***) $tsrm_ls))[executor_globals_id-1])
5-
set $cg = ((zend_compiler_globals) (*((void ***) $tsrm_ls))[compiler_globals_id-1])
4+
set $eg = ((zend_executor_globals*) (*((void ***) $tsrm_ls))[executor_globals_id-1])
5+
set $cg = ((zend_compiler_globals*) (*((void ***) $tsrm_ls))[compiler_globals_id-1])
66
else
77
set $eg = executor_globals
88
set $cg = compiler_globals

0 commit comments

Comments
 (0)