improve debugability in TS debug builds
authorAnatol Belski <ab@php.net>
Tue, 17 Feb 2015 18:15:22 +0000 (19:15 +0100)
committerAnatol Belski <ab@php.net>
Tue, 17 Feb 2015 18:15:22 +0000 (19:15 +0100)
commitd428bf2d4edab232690b64977aaf0a3b15585843
treee5526767b0e19835dde1054b4c2c7bbfa246a3c1
parent31287f0317981ccd4ce38a6e0e128c6504fb1101
improve debugability in TS debug builds

gdb seems to be not always able to fetch the correct context for
thread locals. Thus, the "if (TSRMLS_CACHE)" clause causes gdb to
show crashes which aren't recognized neither with helgrind nor
in release builds. This is reproducable by setting breakpoints on
the exact line where PHP has a tsrm_get_ls_cache() call.
TSRM/TSRM.h