From be35e0f2c66019bb797419f0c3134a455a27140d Mon Sep 17 00:00:00 2001 From: "Dylan T." Date: Mon, 1 Sep 2025 18:52:01 +0100 Subject: [PATCH] .gdbinit: Fix executor_globals locating in release builds Apparently `basic_functions_module` may get optimised away in release builds. The alternative condition I provided seems to work, but I will note I haven't tested this on NTS. --- .gdbinit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gdbinit b/.gdbinit index c4705b2f59a95..b2723bdd5ed71 100644 --- a/.gdbinit +++ b/.gdbinit @@ -10,7 +10,7 @@ document set_ts end define ____executor_globals - if basic_functions_module.zts + if !$_isvoid(&_tsrm_ls_cache) 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])