Skip to content

Commit 3d19a8f

Browse files
committed
[lldb] Use correct size when dumping DWARF64 DW_FORM_ref_addr
Not that we ever do that, because this is unused code, but if someone was debugging lldb I guess they'd call this. Was missed in #145645 Relates to #135208
1 parent 6ec9b1b commit 3d19a8f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lldb/source/Plugins/SymbolFile/DWARF/DWARFFormValue.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -420,8 +420,7 @@ void DWARFFormValue::Dump(Stream &s) const {
420420
DumpAddress(s.AsRawOstream(), uvalue, sizeof(uint64_t) * 2);
421421
else
422422
DumpAddress(s.AsRawOstream(), uvalue,
423-
4 * 2); // 4 for DWARF32, 8 for DWARF64, but we don't
424-
// support DWARF64 yet
423+
m_unit->GetFormParams().getRefAddrByteSize());
425424
break;
426425
}
427426
case DW_FORM_ref1:

0 commit comments

Comments
 (0)