[Lldb-commits] [lldb] [lldb][ScriptedSymbolLocator] Add LocateSourceFile callback to SymbolLocator plugin interface (PR #183674)
via lldb-commits
lldb-commits at lists.llvm.org
Thu Mar 5 11:54:09 PST 2026
================
@@ -489,6 +480,9 @@ class PluginManager {
const UUID *uuid,
const ArchSpec *arch);
+ static FileSpec LocateSourceFile(const lldb::ModuleSP &module_sp,
----------------
rchamala wrote:
More flexibility. In the very original design an year back, I had ModuleSpec, but labath mentioned it be might be useful to have ModuleSP, so we can make it more flexible https://discourse.llvm.org/t/rfc-python-callback-for-source-file-resolution/83545/3?u=rahulvn389
"
His reasoning here is that if the callback wants to get the build id, it can always get it from the Module, but this way maybe it can get some additional information that wouldn’t be available otherwise.
"
This made sense to me, so switched it to ModuleSP
https://github.com/llvm/llvm-project/pull/183674
More information about the lldb-commits
mailing list