[all-commits] [llvm/llvm-project] 979ca1: Defer the decision whether to use the CU or TU ind...

Jorge Gorbe Moya via All-commits all-commits at lists.llvm.org
Tue Feb 23 13:26:38 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 979ca1c05f83114483caec3e6d1b75daae86da79
      https://github.com/llvm/llvm-project/commit/979ca1c05f83114483caec3e6d1b75daae86da79
  Author: Jorge Gorbe Moya <jgorbe at google.com>
  Date:   2021-02-23 (Tue, 23 Feb 2021)

  Changed paths:
    M lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugInfo.cpp
    M lldb/source/Plugins/SymbolFile/DWARF/DWARFUnit.cpp
    M lldb/source/Plugins/SymbolFile/DWARF/DWARFUnit.h
    A lldb/test/Shell/SymbolFile/DWARF/dwarf5_tu_index_abbrev_offset.s

  Log Message:
  -----------
  Defer the decision whether to use the CU or TU index until after reading the unit header.

In DWARF v4 compile units go in .debug_info and type units go in
.debug_types. However, in v5 both kinds of units are in .debug_info.
Therefore we can't decide whether to use the CU or TU index just by
looking at which section we're reading from. We have to wait until we
have read the unit type from the header.

Differential Revision: https://reviews.llvm.org/D96194




More information about the All-commits mailing list