This is needed for object files with MS ABI and debug info in Dwarf.
MSInheritanceAttr is required for record decls under MS ABI.
Fixes #56458
Differential D130942
[LLDB][DWARF] Set MSInheritanceAttr for record decl when it's using Microsoft compatible ABI. zequanwu on Aug 1 2022, 2:27 PM. Authored by
Details
Diff Detail
Event TimelineComment Actions This looks sensible to me, although it might be good if someone else more familiar with this code has a look too. Comment Actions Makes sense to me. For my education, what is the effect of not providing a specific inheritance attribute, like it's being done in the pdb code (which, I presume, is not possible because that information is not encoded in dwarf)?
|
I'm concerned that this isn't really the right fix. Changing the inheritance model changes the size of the member pointer representation, so the consequences of getting the wrong one could affect expression evaluation results. Zequan suggested guessing the inheritance model from the class definition, but we really ought to write down the inheritance model in the DWARF when using the MS ABI. This probably needs its own DWARF attribute.