[all-commits] [llvm/llvm-project] 6d0be7: llvm-dwarfdump: Don't try to parse rnglist tables ...

David Blaikie via All-commits all-commits at lists.llvm.org
Sun Oct 4 19:18:35 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 6d0be74af5555f7bc56ac72cbd98ff270fd1291b
      https://github.com/llvm/llvm-project/commit/6d0be74af5555f7bc56ac72cbd98ff270fd1291b
  Author: David Blaikie <dblaikie at gmail.com>
  Date:   2020-10-04 (Sun, 04 Oct 2020)

  Changed paths:
    M llvm/include/llvm/DebugInfo/DWARF/DWARFListTable.h
    M llvm/include/llvm/DebugInfo/DWARF/DWARFUnit.h
    M llvm/lib/DebugInfo/DWARF/DWARFUnit.cpp
    M llvm/test/DebugInfo/X86/dwarfdump-rnglists-dwarf64.s
    M llvm/test/DebugInfo/X86/dwarfdump-rnglists.s
    M llvm/test/tools/llvm-dwarfdump/X86/tombstone.s

  Log Message:
  -----------
  llvm-dwarfdump: Don't try to parse rnglist tables when dumping CUs

It's not possible to do this in complete generality - a CU using a
sec_offset DW_AT_ranges has no way of knowing where its rnglists
contribution starts, so should not attempt to parse any full rnglist
table/header to do so. And even using FORM_rnglistx there's no need to
parse the header - the offset can be computed using the CU's DWARF
format (32 or 64) to compute offset entry sizes, and then the list
parsed at that offset without ever trying to find a rnglist contribution
header immediately prior to the rnglists_base.




More information about the All-commits mailing list