Skip to content

GDB: apply ast pretty printing to specialized structures #17884

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 25, 2025

Conversation

DanielEScherzer
Copy link
Member

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.

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.
@TimWolla TimWolla merged commit 0b42749 into php:master Feb 25, 2025
9 checks passed
@DanielEScherzer DanielEScherzer deleted the gdb-ast-others branch February 25, 2025 17:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants