[php-src] PR #17884: GDB: apply ast pretty printing to specialized structures
| From: | DanielEScherzer | Date: | Sat, 22 Feb 2025 00:12:12 +0000 |
| Subject: | [php-src] PR #17884: GDB: apply ast pretty printing to specialized structures | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-30868@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/17884
Author: DanielEScherzer
The
ZendAstPrettyPrinter had logic to handle the various structures that are based on
zend_ast, like zend_ast_decl, but the printer was only installed when the
value was a zend_ast, meaning that for the specialized structures the details
wouldn't be shown unless they were cast (in GDB) to zend_ast. Instead, just
register the printer for the specialized structures too.