[PATCH] D98289: [lldb] Fix DW_AT_ranges DW_FORM_sec_offset not using DW_AT_rnglists_base (used by GCC)

David Blaikie via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 12 13:50:58 PST 2021


dblaikie added inline comments.


================
Comment at: llvm/include/llvm/DebugInfo/DWARF/DWARFListTable.h:116
   Optional<uint64_t> getOffsetEntry(DataExtractor Data, uint32_t Index) const {
-    if (Index > HeaderData.OffsetEntryCount)
+    if (Index >= HeaderData.OffsetEntryCount)
       return None;
----------------
jankratochvil wrote:
> A regression from: https://reviews.llvm.org/D86110#2621583
Changes to LLVM should have tests in LLVM - probably best to split this out as a separate patch to LLVM only, if you can?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D98289/new/

https://reviews.llvm.org/D98289



More information about the llvm-commits mailing list