[all-commits] [llvm/llvm-project] 69a586: [lldb][split-dwarf] implement GetSeparateDebugInfo...

Tom Yang via All-commits all-commits at lists.llvm.org
Mon Nov 20 12:17:29 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 69a5869da4906f61caf59ff021559ca7d974c5f9
      https://github.com/llvm/llvm-project/commit/69a5869da4906f61caf59ff021559ca7d974c5f9
  Author: Tom Yang <zhenyutyang at gmail.com>
  Date:   2023-11-20 (Mon, 20 Nov 2023)

  Changed paths:
    M lldb/include/lldb/Symbol/SymbolFileOnDemand.h
    M lldb/test/API/commands/target/dump-separate-debug-info/dwo/Makefile
    M lldb/test/API/commands/target/dump-separate-debug-info/dwo/TestDumpDwo.py
    A lldb/test/API/commands/target/dump-separate-debug-info/dwo/foo.c
    R lldb/test/API/commands/target/dump-separate-debug-info/dwo/foo.cpp
    A lldb/test/API/commands/target/dump-separate-debug-info/dwo/main.c
    R lldb/test/API/commands/target/dump-separate-debug-info/dwo/main.cpp
    M lldb/test/API/commands/target/dump-separate-debug-info/oso/TestDumpOso.py

  Log Message:
  -----------
  [lldb][split-dwarf] implement GetSeparateDebugInfo for SymbolFileOnDemand (#71230)

Small change to get `image dump separate-debug-info` working when using
`symbols.load-on-demand`.

Added tests to `TestDumpDwo`, and enabled the test for all platforms. If we fail to build, we skip the test, so this shouldn't cause the test to fail on unsupported platforms.
```
bin/lldb-dotest -p TestDumpDwo
```

It's easy to verify this manually by running 
```
lldb --one-line-before-file "settings set symbols.load-on-demand true" <some_target>
(lldb) image dump separate-debug-info
...
```

---------

Co-authored-by: Tom Yang <toyang at fb.com>




More information about the All-commits mailing list