Is there a way to print a type attribute from inside GDB?
E.g. Integer’Size.
Is there a way to print a type attribute from inside GDB? E.g. Integer’Size.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes:
(gdb) p thing’attribute
Some attributes are recognized, and others aren’t. (In what’s listed below, Found is a Boolean variable.)
Here’s the list from the Ada section of Debugging with gdb:
(Hmm, that list may be dated, since I could do Integer’Last, despite the first bullet saying that it’s not valid on types.)