diff --git a/lldb/source/Expression/ClangASTSource.cpp b/lldb/source/Expression/ClangASTSource.cpp index dc12501171b1..853d102c5426 100644 --- a/lldb/source/Expression/ClangASTSource.cpp +++ b/lldb/source/Expression/ClangASTSource.cpp @@ -974,6 +974,9 @@ ClangASTSource::FindObjCMethodDecls (NameSearchContext &context) } ss.Flush(); + if (strstr(ss.GetData(), "$__lldb")) + return; // we don't need any results + ConstString selector_name(ss.GetData()); if (log) diff --git a/lldb/test/lang/objc/foundation/TestObjCMethods.py b/lldb/test/lang/objc/foundation/TestObjCMethods.py index f97b1d8506f4..91117214eaea 100644 --- a/lldb/test/lang/objc/foundation/TestObjCMethods.py +++ b/lldb/test/lang/objc/foundation/TestObjCMethods.py @@ -113,14 +113,12 @@ class FoundationTestCase(TestBase): substrs = ["Foundation`-[NSAutoreleasePool release]"]) @dsym_test - @expectedFailureDarwin(15797390) def test_expression_lookups_objc_dsym(self): """Test running an expression detect spurious debug info lookups (dSYM).""" self.buildDsym() self.expression_lookups_objc() @dwarf_test - @expectedFailureDarwin(15797390) def test_expression_lookups_objc_dwarf(self): """Test running an expression detect spurious debug info lookups (DWARF).""" self.buildDwarf()