From 944de3ac40ddf3ccb58dc111479abf4181f6f8ed Mon Sep 17 00:00:00 2001 From: Ebuka Ezike Date: Tue, 23 Sep 2025 10:58:18 +0100 Subject: [PATCH 1/2] [lldb] look up function names in the swift language plugin when setting breakpoints if the If the language type not set, try the swift plugin. --- lldb/source/Core/Module.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lldb/source/Core/Module.cpp b/lldb/source/Core/Module.cpp index 731aa6688d275..ed17078190763 100644 --- a/lldb/source/Core/Module.cpp +++ b/lldb/source/Core/Module.cpp @@ -661,7 +661,11 @@ Module::LookupInfo::LookupInfo(ConstString name, if (language != eLanguageTypeUnknown) lang_types.push_back(language); else - lang_types = {eLanguageTypeObjC, eLanguageTypeC_plus_plus}; + lang_types = {eLanguageTypeObjC, eLanguageTypeC_plus_plus, +#ifdef LLDB_ENABLE_SWIFT + eLanguageTypeSwift +#endif + }; for (LanguageType lang_type : lang_types) { if (Language *lang = Language::FindPlugin(lang_type)) From efeff604111d7809575520a2fc3d63308c4a864d Mon Sep 17 00:00:00 2001 From: Ebuka Ezike Date: Tue, 23 Sep 2025 11:02:12 +0100 Subject: [PATCH 2/2] [lldb][test] enable `BreakByPartialName` --- .../swift/break_by_partial_name/TestSwiftBreakByPartialName.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/lldb/test/API/lang/swift/break_by_partial_name/TestSwiftBreakByPartialName.py b/lldb/test/API/lang/swift/break_by_partial_name/TestSwiftBreakByPartialName.py index de901b6222f25..3387454914887 100644 --- a/lldb/test/API/lang/swift/break_by_partial_name/TestSwiftBreakByPartialName.py +++ b/lldb/test/API/lang/swift/break_by_partial_name/TestSwiftBreakByPartialName.py @@ -13,12 +13,10 @@ Tests that we can break on a partial name of a Swift function Effectively tests our chopper of Swift demangled names """ -import lldb from lldbsuite.test.lldbtest import * from lldbsuite.test.decorators import * import lldbsuite.test.lldbutil as lldbutil -@skipIf(bugnumber = "rdar://159531198") class SwiftPartialBreakTest(TestBase): @swiftTest def test_swift_partial_break(self):