We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cdb3a8b commit 939fe5aCopy full SHA for 939fe5a
lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugInfoEntry.cpp
@@ -611,6 +611,9 @@ void DWARFDebugInfoEntry::BuildFunctionAddressRangeTable(
611
DWARFUnit *cu, DWARFDebugAranges *debug_aranges) const {
612
Log *log = GetLog(DWARFLog::DebugInfo);
613
if (m_tag) {
614
+ // Subprogram forward declarations don't have
615
+ // DW_AT_ranges/DW_AT_low_pc/DW_AT_high_pc attributes, so don't even try
616
+ // getting address range information for them.
617
if (m_tag == DW_TAG_subprogram &&
618
!GetAttributeValueAsOptionalUnsigned(cu, DW_AT_declaration)) {
619
if (llvm::Expected<llvm::DWARFAddressRangesVector> ranges =
0 commit comments