-
Notifications
You must be signed in to change notification settings - Fork 7.9k
GDB: format output for class entries and class constants #15955
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
Conversation
Is this really necessary?
Displaying the name directly does seem useful, but isn't it possible to solve this more generically by creating a pretty-printer that supports /cc @arnaud-lb |
I also think that
There is a
We could have a
|
Some infos are still useful, i.e. whether the string is interned, persistent, etc. Maybe also print that? |
That would clutter the output, especially in If we have
We can easily inspect the name with
or
|
For `zend_string` pointers in class entries, show the string contents (if not `NULL`). For class constants, the `ce` (class entry pointer) field is shown with the name of the class, and the `doc_comment` field is shown with the string contents if possible.
I spent a while trying to get a pointer printer to work and couldn't get GDB to apply it when looking at pointers, but if you know how to do this I agree that it would be nice to have
Removed the extra |
My bad, tried it too and I don't think there is a way to pretty print pointers after all |
Thank you @DanielEScherzer! |
For
zend_string
pointers in class entries, show the string contents (if notNULL
).For class constants, the
ce
(class entry pointer) field is shown with the name of the class, and thedoc_comment
field is shown with the string ontents if possible.