[PATCH] D102851: [lldb] Improve invalid DWARF DW_AT_ranges error reporting

Jan Kratochvil via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 20 09:12:13 PDT 2021


jankratochvil created this revision.
jankratochvil added a reviewer: dblaikie.
jankratochvil added a project: LLDB.
Herald added a subscriber: JDevlieghere.
jankratochvil requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

In D98289#inline-939112 <https://reviews.llvm.org/D98289#inline-939112> @dblaikie said:

> Perhaps this could be more informative about what makes the range list index of 0 invalid? "index 0 out of range of range list table (with range list base 0xXXX) with offset entry count of XX (valid indexes 0-(XX-1))" Maybe that's too verbose/not worth worrying about since this'll only be relevant to DWARF producers trying to debug their DWARFv5, maybe no one will ever see this message in practice. Just a thought.

If this is OK I will need to submit the LLVM part separately.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D102851

Files:
  lldb/source/Plugins/SymbolFile/DWARF/DWARFUnit.cpp
  lldb/source/Plugins/SymbolFile/DWARF/DWARFUnit.h
  lldb/test/Shell/SymbolFile/DWARF/DW_AT_range-DW_FORM_sec_offset.s
  llvm/include/llvm/DebugInfo/DWARF/DWARFListTable.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D102851.346760.patch
Type: text/x-patch
Size: 5471 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210520/cd725338/attachment.bin>


More information about the llvm-commits mailing list