[Lldb-commits] [lldb] [lldb] Use correct size when dumping DWARF64 DW_FORM_ref_addr (PR #146686)
Hemang Gadhavi via lldb-commits
lldb-commits at lists.llvm.org
Wed Jul 2 22:19:13 PDT 2025
================
@@ -420,8 +420,7 @@ void DWARFFormValue::Dump(Stream &s) const {
DumpAddress(s.AsRawOstream(), uvalue, sizeof(uint64_t) * 2);
else
DumpAddress(s.AsRawOstream(), uvalue,
----------------
HemangGadhavi wrote:
No need to check for the <= 2 DWARF version now, Because its handled by getRefAddrByteSize().
you can removed below peace of code,
```
if (m_unit->GetVersion() <= 2)
DumpAddress(s.AsRawOstream(), uvalue, sizeof(uint64_t) * 2);
else
```
https://github.com/llvm/llvm-project/pull/146686
More information about the lldb-commits
mailing list