[all-commits] [llvm/llvm-project] e0e623: Fix debug info size statistics for split dwarf (#8...

jeffreytan81 via All-commits all-commits at lists.llvm.org
Thu Feb 1 09:11:37 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e0e6236fd61f906f8529dcaa8ecd0beec1f5a18a
      https://github.com/llvm/llvm-project/commit/e0e6236fd61f906f8529dcaa8ecd0beec1f5a18a
  Author: jeffreytan81 <jeffreytan at meta.com>
  Date:   2024-02-01 (Thu, 01 Feb 2024)

  Changed paths:
    M lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp
    M lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.h
    M lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARFDwo.cpp
    M lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARFDwo.h
    A lldb/test/API/commands/target/debuginfo/TestDebugInfoSize.py
    A lldb/test/API/commands/target/debuginfo/a.out-foo.dwo.yaml
    A lldb/test/API/commands/target/debuginfo/a.out-main.dwo.yaml
    A lldb/test/API/commands/target/debuginfo/a.out.yaml

  Log Message:
  -----------
  Fix debug info size statistics for split dwarf (#80218)

`statistics dump` command relies on `SymbolFile::GetDebugInfoSize()` to
get total debug info size.
The current implementation is missing debug info for split dwarf
scenarios which requires getting debug info from separate dwo/dwp files.
This patch fixes this issue for split dwarf by parsing debug info from
dwp/dwo.

New yaml tests are added.

---------

Co-authored-by: jeffreytan81 <jeffreytan at fb.com>




More information about the All-commits mailing list