[Lldb-commits] [lldb] [lldb][DWARF] Only log address range error to verbose channel (PR #144037)
Michael Buch via lldb-commits
lldb-commits at lists.llvm.org
Fri Jun 13 03:30:31 PDT 2025
Michael137 wrote:
Looks like this error just happens anytime we build the aranges table for a CU. Any `DW_TAG_subprogram` without a `DW_AT_low_pc`/`DW_AT_high_pc` will fail here and log this error. Should we maybe just skip the call to `GetAttributeAddressRanges` here when we're looking at forward declaration DIEs?
```
void DWARFDebugInfoEntry::BuildFunctionAddressRangeTable(
DWARFUnit *cu, DWARFDebugAranges *debug_aranges) const {
Log *log = GetLog(DWARFLog::DebugInfo);
if (m_tag) {
if (m_tag == DW_TAG_subprogram) {
if (llvm::Expected<llvm::DWARFAddressRangesVector> ranges =
GetAttributeAddressRanges(cu, /*check_hi_lo_pc=*/true)) {
```
?
@labath @adrian-prantl
https://github.com/llvm/llvm-project/pull/144037
More information about the lldb-commits
mailing list