[Lldb-commits] [lldb] [lldb][DWARF64] Enable support for DWARF64 format handling (PR #145645)
Pavel Labath via lldb-commits
lldb-commits at lists.llvm.org
Wed Jun 25 06:54:05 PDT 2025
labath wrote:
Also note that there are remnants of our previous attempt at dwarf64 support (which was deleted many years ago) lying around the DWARFDataExtractor class. However, since this isn't how *llvm*'s DWARFDataExtractor works, I think we should not be using that (instead, we should delete it). LLVM's current approach is kind of similar to what you're doing actually, but instead of peppering the code with `if dwarf64` blocks, they have a function to return the correct dwarf offset size (`FormParams::getDwarfOffsetByteSize`). We should do something similar. We already have the FormParams object accessible from inside our DWARFUnit (through the m_header field), so I think it'd be best to replace `GetFormat` method you added with `GetFormParams`, and then the parsing code would do a `m_unit->GetFormParams().getDwarfOffsetByteSize`
https://github.com/llvm/llvm-project/pull/145645
More information about the lldb-commits
mailing list