[Lldb-commits] [lldb] [lldb] Scope symbol lookups to specific modules in ObjC/SystemRuntime plugins (PR #193379)
Jason Molenda via lldb-commits
lldb-commits at lists.llvm.org
Wed Apr 22 00:19:50 PDT 2026
================
@@ -459,20 +459,30 @@ bool AppleObjCRuntime::CalculateHasNewLiteralsAndIndexing() {
if (!m_process)
return false;
- Target &target(m_process->GetTarget());
+ Target &target = m_process->GetTarget();
static ConstString s_method_signature(
"-[NSDictionary objectForKeyedSubscript:]");
static ConstString s_arclite_method_signature(
"__arclite_objectForKeyedSubscript");
+ // NSDictionary is toll-free bridged with CFDictionary, so the
+ // implementation lives in CoreFoundation, not Foundation.
+ static ModuleSpec corefoundation_module_spec(FileSpec("CoreFoundation"));
+
+ if (ModuleSP corefoundation_module_sp =
+ target.GetImages().FindFirstModule(corefoundation_module_spec)) {
----------------
jasonmolenda wrote:
Is this going to match the Module with just a filename? FileSpec::operator= does `FileEquals(rhs) && DirectoryEquals(rhs)` and
```
bool FileSpec::DirectoryEquals(const FileSpec &rhs) const {
const bool case_sensitive = IsCaseSensitive() || rhs.IsCaseSensitive();
return ConstString::Equals(m_directory, rhs.m_directory, case_sensitive);
}
```
https://github.com/llvm/llvm-project/pull/193379
More information about the lldb-commits
mailing list