-
Notifications
You must be signed in to change notification settings - Fork 9
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
DW_DLE_ATTR_FORM_BAD (114) ERR_INVALID_DWARF: Failed to read DWARF from 'asan.o' #7
Comments
Build with:
|
Reproduced: repro.zip Looks like gcc is now outputting template parameter values in block form rather than as integers (which is valid DWARF).
This has the same underlying problem as issue #1 (quick fixed), where we could account for more forms when reading attributes, and handle forms we aren't expecting better. |
As an aside I wonder why the value is now encoded as The reader of the DWARF can't interpret the value without knowing what the bytes represent. In this case they're a little endian integer but there is no way of 'knowing' that. |
The type is the DW_AT_type on the DW_TAG_template_value_parameter. If you look at DWARF, e.g. DWARF5 pdf, block class next to constant and string are the supported classes. |
Hello.
Following test-case:
Fails with GCC 7.1.0+. Looks it started with r241085 of GCC:
The text was updated successfully, but these errors were encountered: