[all-commits] [llvm/llvm-project] 5709f9: [LLDB] Expose enumerator for separate-debug-info i...

Jacob Lalonde via All-commits all-commits at lists.llvm.org
Mon Jun 8 15:19:02 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5709f9560f261866011e612993e46f72892ddb62
      https://github.com/llvm/llvm-project/commit/5709f9560f261866011e612993e46f72892ddb62
  Author: Jacob Lalonde <jalalonde at fb.com>
  Date:   2026-06-08 (Mon, 08 Jun 2026)

  Changed paths:
    M lldb/include/lldb/API/SBModule.h
    M lldb/include/lldb/API/SBModuleSpec.h
    M lldb/include/lldb/Core/Module.h
    M lldb/include/lldb/Symbol/SymbolFile.h
    M lldb/include/lldb/Symbol/SymbolFileOnDemand.h
    M lldb/source/API/SBModule.cpp
    M lldb/source/API/SBModuleSpec.cpp
    M lldb/source/Core/Module.cpp
    M lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp
    M lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.h
    M lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARFDebugMap.cpp
    M lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARFDebugMap.h
    A lldb/test/API/python_api/sbmodule/SeperateDebugInfo/Makefile
    A lldb/test/API/python_api/sbmodule/SeperateDebugInfo/TestSBModuleSeparateDebugInfo.py
    A lldb/test/API/python_api/sbmodule/SeperateDebugInfo/bar.cpp
    A lldb/test/API/python_api/sbmodule/SeperateDebugInfo/main.cpp

  Log Message:
  -----------
  [LLDB] Expose enumerator for separate-debug-info in SBModule (#144119)

Today we can run `target modules dump separate-debug-info --json` to get
a json blob of all the separate debug info, but it has a few
shortcomings when developing some scripting against it. Namely, the
caller has to know the structure of the JSON per architecture that will
be returned.

I've been working on a Minidump packing utility where we enumerate
symbols and source and put them in a package so we can debug with
symbols portably, and it's been difficult to maintain multiple
architectures due to the above shortcomings. To address this for myself,
I've exposed a simple iterator for the SBModule to get all the
separate-debug-info as list of filespecs with no need for the caller to
have context on what kind of data it is.

I also extened the swig interfaces to make writing my test easier and as
a nice to have.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list