[Lldb-commits] [lldb] [lldb][Expression] Encode Module and DIE UIDs into function AsmLabels (PR #148877)

Michael Buch via lldb-commits lldb-commits at lists.llvm.org
Mon Jul 28 02:02:53 PDT 2025


================
@@ -2471,6 +2471,47 @@ bool SymbolFileDWARF::ResolveFunction(const DWARFDIE &orig_die,
   return false;
 }
 
+llvm::Error
+SymbolFileDWARF::FindAndResolveFunction(SymbolContextList &sc_list,
+                                        llvm::StringRef lookup_name) {
+  std::lock_guard<std::recursive_mutex> guard(GetModuleMutex());
+
+  DWARFDIE die;
+  Module::LookupInfo info(ConstString(lookup_name), lldb::eFunctionNameTypeFull,
----------------
Michael137 wrote:

Thanks for clarifying! Yes, that's about what I imagined it would look like

> I just realized that "anywhere" also means "in a different module", which means that there should be some sort of a fallback to searching in other modules

Great point. I think we can re-use the existing `IRExecutionUnit` to do a fallback search through the other modules.

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


More information about the lldb-commits mailing list