[Lldb-commits] [lldb] [lldb][NFC] Defer python init until ScriptInterpreter is created (PR #105757)

Pavel Labath via lldb-commits lldb-commits at lists.llvm.org
Wed Dec 18 01:37:28 PST 2024


labath wrote:

I'm also not very thrilled by this. I think your use case would be very hard to support in the long term. From the sound of things, you're using a fairly limited subset of the lldb api (SBModule, SBCompileUnit, SBType?), but even so, i think we can't guarantee that neither of these APIs will ever cause a script interpreter to be loaded (lazily).

In your place, I'd look into other alternatives. I'm not sure what "level" you want to view the debug info at, but llvm has another DWARF parser which is more suitable for library usage (llvm/DebugInfo/DWARF). There's also the "logical view" library (llvm/DebugInfo/LogicalView) which should give you a higher level view of the information, though I have no actual experience with it.

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


More information about the lldb-commits mailing list