[all-commits] [llvm/llvm-project] fb09f3: [lldb] [DWARF-5] Be lazier about loading .dwo files

EricSL via All-commits all-commits at lists.llvm.org
Sat Jul 31 01:46:18 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fb09f365ae28920666ddfd466fb09b44b9cb7be1
      https://github.com/llvm/llvm-project/commit/fb09f365ae28920666ddfd466fb09b44b9cb7be1
  Author: Eric Leese <leese at google.com>
  Date:   2021-07-31 (Sat, 31 Jul 2021)

  Changed paths:
    M lldb/include/lldb/Symbol/CompileUnit.h
    M lldb/source/Plugins/SymbolFile/DWARF/DWARFUnit.cpp
    M lldb/source/Plugins/SymbolFile/DWARF/DWARFUnit.h
    M lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp
    M lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.h
    M lldb/source/Symbol/CompileUnit.cpp
    A lldb/test/Shell/SymbolFile/DWARF/dwarf5-lazy-dwo.c
    M lldb/test/Shell/SymbolFile/DWARF/lit.local.cfg
    A lldb/test/Shell/SymbolFile/DWARF/split-optimized.c
    M lldb/test/Shell/SymbolFile/DWARF/x86/dwp.s

  Log Message:
  -----------
  [lldb] [DWARF-5] Be lazier about loading .dwo files

This change makes sure that DwarfUnit does not load a .dwo file until
necessary. I also take advantage of DWARF 5's guarantee that the first
support file is also the primary file to make it possible to create
a compile unit without loading the .dwo file.

Testcases now require Linux as it is needed for -gsplit-dwarf.

Review By: jankratochvil, dblaikie

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




More information about the All-commits mailing list