Relax condition for DW_DLE_IMPROPER_DWO_ID#315
Merged
davea42 merged 1 commit intodavea42:mainfrom Feb 23, 2026
Merged
Conversation
davea42
approved these changes
Feb 23, 2026
Owner
davea42
left a comment
There was a problem hiding this comment.
Yes, this seems sensible.
Thanks!
Contributor
Author
|
Thanks so much for the quick reply and merge! This will be very helpful for enabling cpptrace to work with code compiled with -gmodules. |
Owner
|
I really appreciate your thoughtful and meaningful insights. Thanks again. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hello,
Clang has added a flag called
-gmoduleswhere when using C++20 modules the compiler omits most DWARF info pertaining to types from object files and instead a debug fission-like link to a pcm file (used by clang for precompiled headers and modules) is used. The CU DIE looks likeThere is a check in dwarf_die_deliv.c which errors when a
DW_DLE_IMPROPER_DWO_IDattribute is present but dwarf 4 isn't used, or dwarf 5 and apple clang are used (this part was recently added in b0b8cea).Since this isn't just an apple clang caveat, and I imagine gcc might do something similar in the future, I think the condition should be relaxed to just checking if the version is before dwarf 4.