File tree 2 files changed +8
-3
lines changed 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -36,9 +36,7 @@ DAP::DAP()
36
36
{{" cpp_catch" , " C++ Catch" , lldb::eLanguageTypeC_plus_plus},
37
37
{" cpp_throw" , " C++ Throw" , lldb::eLanguageTypeC_plus_plus},
38
38
{" objc_catch" , " Objective-C Catch" , lldb::eLanguageTypeObjC},
39
- {" objc_throw" , " Objective-C Throw" , lldb::eLanguageTypeObjC},
40
- {" swift_catch" , " Swift Catch" , lldb::eLanguageTypeSwift},
41
- {" swift_throw" , " Swift Throw" , lldb::eLanguageTypeSwift}}),
39
+ {" objc_throw" , " Objective-C Throw" , lldb::eLanguageTypeObjC}}),
42
40
focus_tid(LLDB_INVALID_THREAD_ID), sent_terminated_event(false ),
43
41
stop_at_entry(false ), is_attach(false ),
44
42
enable_auto_variable_summaries(false ),
Original file line number Diff line number Diff line change @@ -1628,7 +1628,14 @@ void request_initialize(const llvm::json::Object &request) {
1628
1628
body.try_emplace (" supportsEvaluateForHovers" , true );
1629
1629
// Available filters or options for the setExceptionBreakpoints request.
1630
1630
llvm::json::Array filters;
1631
+ std::string triple =
1632
+ std::string (g_dap.debugger .GetSelectedPlatform ().GetTriple ());
1631
1633
for (const auto &exc_bp : g_dap.exception_breakpoints ) {
1634
+ // Skipping objc breakpoint filters if not working on macos.
1635
+ if (exc_bp.language == lldb::eLanguageTypeObjC &&
1636
+ triple.find (" macos" ) == std::string::npos) {
1637
+ continue ;
1638
+ }
1632
1639
filters.emplace_back (CreateExceptionBreakpointFilter (exc_bp));
1633
1640
}
1634
1641
body.try_emplace (" exceptionBreakpointFilters" , std::move (filters));
You can’t perform that action at this time.
0 commit comments