[Lldb-commits] [lldb] [LLDB][NFC] Remove Debugger dependency in SystemLifetimeManager (PR #134383)

Dmitry Vasilyev via lldb-commits lldb-commits at lists.llvm.org
Mon Apr 7 07:29:35 PDT 2025


slydiman wrote:

@labath 

> The only thing which makes that difficult is that the callback is a lambda defined in SBDebugger.cpp. However, there's no reason it has to be defined there -- the lambda itself doesn't depend on anything, and it could easily be moved to SystemInitializerFull.cpp.

I have moved The lambda LoadPlugin to SystemInitializerFull. But this lambda calls the protected constructor lldb::SBDebugger(const lldb::DebuggerSP &debugger_sp).

Any suggestions?

https://github.com/llvm/llvm-project/pull/134383


More information about the lldb-commits mailing list