-
Notifications
You must be signed in to change notification settings - Fork 3
Containers in child packages are not recognized #3
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
Comments
Hello @ptroja Thank you for the reproducer! I can see this on my side as well. Quick investigation reveals that this is due to how GNAT materializes entities nested in package bodies: some suffixes (here Xn) are appended to symbol names. Name matching in Anyway, this should be easy to fix. |
GNAT appends Xn/Xb suffixes for entities which are nested in body packages and GDB does not strip them when getting type pretty names. This commit introduces a helper to strip them and then uses it where relevant in pretty-printers. For GitHub issue #3 Change-Id: Ic3c93e0eb34d17af101015c054e8b2004a967d58 no-tn-check
For GitHub issue #3 Change-Id: I3478d1fc0f9ce9a1b3b93330210c07c8723c819c no-tn-check
This is now fixed. Thanks again for reporting this! |
This issue feels similar to #1. However, there the FSF GCC seems to be blamed, while here I am using the AdaCore compiler and debugger (a nightly build from 20181211).
To reproduce, please compile the code with
gnatmake -g lister
, enter the debugger and print two instances of doubly-linked lists:One of them is pretty-printed as expected (which confirms that my setup is correct), the other is not (which shows that the matcher is not working as it should).
This actually came from debugging the spark2014 toolset; the above is just (hopefully minimal) reproducer.
list.zip
The text was updated successfully, but these errors were encountered: