Skip to content

Commit 13c116b

Browse files
authored
[lldb] look up function names in the swift language plugin (#11477)
when setting breakpoints if the If the language type not set, try the swift plugin.
1 parent 35ade4b commit 13c116b

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

lldb/source/Core/Module.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -661,7 +661,11 @@ Module::LookupInfo::LookupInfo(ConstString name,
661661
if (language != eLanguageTypeUnknown)
662662
lang_types.push_back(language);
663663
else
664-
lang_types = {eLanguageTypeObjC, eLanguageTypeC_plus_plus};
664+
lang_types = {eLanguageTypeObjC, eLanguageTypeC_plus_plus,
665+
#ifdef LLDB_ENABLE_SWIFT
666+
eLanguageTypeSwift
667+
#endif
668+
};
665669

666670
for (LanguageType lang_type : lang_types) {
667671
if (Language *lang = Language::FindPlugin(lang_type))

lldb/test/API/lang/swift/break_by_partial_name/TestSwiftBreakByPartialName.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,10 @@
1313
Tests that we can break on a partial name of a Swift function
1414
Effectively tests our chopper of Swift demangled names
1515
"""
16-
import lldb
1716
from lldbsuite.test.lldbtest import *
1817
from lldbsuite.test.decorators import *
1918
import lldbsuite.test.lldbutil as lldbutil
2019

21-
@skipIf(bugnumber = "rdar://159531198")
2220
class SwiftPartialBreakTest(TestBase):
2321
@swiftTest
2422
def test_swift_partial_break(self):

0 commit comments

Comments
 (0)