[llvm] [DebugInfo] DWARF Units without DIEs are okay (PR #88840)

Will Hawkins via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 16 20:59:52 PDT 2024


hawkinsw wrote:

I have spent several hours (too many!) reading the DWARF spec tonight and have convinced myself (and then unconvinced myself) about the situation here several times.

It would seem like the situation that this patch is attempting to prevent is one in which there is a Unit header without a subsequent Unit DIE. The other issues that I spent my entire night researching have nothing to do with the issue here. (I learned a ton in the process, though, which is awesome!) The issue here is rather simple and exactly as @dwblaikie pointed out. I am sorry for the hassle.

I will head back to the gdb project and update the code that they use to emit dummy CUs to bring it within spec.

Thank you all and sorry for the trouble!

https://github.com/llvm/llvm-project/pull/88840


More information about the llvm-commits mailing list