99#include " DAP.h"
1010#include " DAPLog.h"
1111#include " EventHelper.h"
12+ #include " ExceptionBreakpoint.h"
1213#include " Handler/RequestHandler.h"
1314#include " Handler/ResponseHandler.h"
1415#include " JSONUtils.h"
@@ -131,28 +132,28 @@ void DAP::PopulateExceptionBreakpoints() {
131132 if (lldb::SBDebugger::SupportsLanguage (lldb::eLanguageTypeC_plus_plus)) {
132133 exception_breakpoints.emplace_back (*this , " cpp_catch" , " C++ Catch" ,
133134 lldb::eLanguageTypeC_plus_plus,
134- /* is_throw= */ false , /* is_catch= */ true );
135+ eExceptionKindCatch );
135136 exception_breakpoints.emplace_back (*this , " cpp_throw" , " C++ Throw" ,
136137 lldb::eLanguageTypeC_plus_plus,
137- /* is_throw= */ true , /* is_catch= */ false );
138+ eExceptionKindThrow );
138139 }
139140
140141 if (lldb::SBDebugger::SupportsLanguage (lldb::eLanguageTypeObjC)) {
141142 exception_breakpoints.emplace_back (*this , " objc_catch" , " Objective-C Catch" ,
142143 lldb::eLanguageTypeObjC,
143- /* is_throw= */ false , /* is_catch= */ true );
144+ eExceptionKindCatch );
144145 exception_breakpoints.emplace_back (*this , " objc_throw" , " Objective-C Throw" ,
145146 lldb::eLanguageTypeObjC,
146- /* is_throw= */ true , /* is_catch= */ false );
147+ eExceptionKindThrow );
147148 }
148149
149150 if (lldb::SBDebugger::SupportsLanguage (lldb::eLanguageTypeSwift)) {
150151 exception_breakpoints.emplace_back (*this , " swift_catch" , " Swift Catch" ,
151152 lldb::eLanguageTypeSwift,
152- /* is_throw= */ false , /* is_catch= */ true );
153+ eExceptionKindCatch );
153154 exception_breakpoints.emplace_back (*this , " swift_throw" , " Swift Throw" ,
154155 lldb::eLanguageTypeSwift,
155- /* is_throw= */ true , /* is_catch= */ false );
156+ eExceptionKindThrow );
156157 }
157158
158159 // Besides handling the hardcoded list of languages from above, we try to find
@@ -184,7 +185,7 @@ void DAP::PopulateExceptionBreakpoints() {
184185 exception_breakpoints.emplace_back (
185186 *this , raw_lang_name + " _" + throw_keyword,
186187 capitalized_lang_name + " " + capitalize (throw_keyword), lang,
187- /* is_throw= */ true , /* is_catch= */ false );
188+ eExceptionKindThrow );
188189 }
189190
190191 if (lldb::SBLanguageRuntime::SupportsExceptionBreakpointsOnCatch (lang)) {
@@ -196,7 +197,7 @@ void DAP::PopulateExceptionBreakpoints() {
196197 exception_breakpoints.emplace_back (
197198 *this , raw_lang_name + " _" + catch_keyword,
198199 capitalized_lang_name + " " + capitalize (catch_keyword), lang,
199- /* is_throw= */ true , /* is_catch= */ false );
200+ eExceptionKindCatch );
200201 }
201202 }
202203}
0 commit comments