[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:55:40 PDT 2025
================
@@ -121,8 +124,12 @@ bool DWARFFormValue::ExtractValue(const DWARFDataExtractor &data,
assert(m_unit);
if (m_unit->GetVersion() <= 2)
ref_addr_size = m_unit->GetAddressByteSize();
- else
- ref_addr_size = 4;
+ else {
+ if (m_unit->GetFormat() == DwarfFormat::DWARF32)
+ ref_addr_size = 4;
+ else if (m_unit->GetFormat() == DwarfFormat::DWARF64)
+ ref_addr_size = 8;
+ }
----------------
labath wrote:
No, but we can use `getDwarfOffsetByteSize`. Address size (of the architecture) is completely orthogonal to the size of dwarf references.
https://github.com/llvm/llvm-project/pull/145645
More information about the lldb-commits
mailing list