File tree Expand file tree Collapse file tree 3 files changed +10
-5
lines changed Expand file tree Collapse file tree 3 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -363,9 +363,13 @@ class Language : public PluginInterface {
363
363
return false ;
364
364
}
365
365
366
- // / Returns true if this Language supports exception breakpoints via a
367
- // / corresponding LanguageRuntime plugin.
368
- virtual bool SupportsExceptionBreakpoints () const { return false ; }
366
+ // / Returns true if this Language supports exception breakpoints on throw via
367
+ // / a corresponding LanguageRuntime plugin.
368
+ virtual bool SupportsExceptionBreakpointsOnThrow () const { return false ; }
369
+
370
+ // / Returns true if this Language supports exception breakpoints on catch via
371
+ // / a corresponding LanguageRuntime plugin.
372
+ virtual bool SupportsExceptionBreakpointsOnCatch () const { return false ; }
369
373
370
374
protected:
371
375
// Classes that inherit from Language can see and modify these
Original file line number Diff line number Diff line change @@ -317,7 +317,8 @@ class CommandObjectBreakpointSet : public CommandObjectParsed {
317
317
break ;
318
318
default :
319
319
if (Language *languagePlugin = Language::FindPlugin (language)) {
320
- if (languagePlugin->SupportsExceptionBreakpoints ()) {
320
+ if (languagePlugin->SupportsExceptionBreakpointsOnThrow () ||
321
+ languagePlugin->SupportsExceptionBreakpointsOnCatch ()) {
321
322
m_exception_language = language;
322
323
break ;
323
324
}
Original file line number Diff line number Diff line change @@ -194,7 +194,7 @@ class ObjCLanguage : public Language {
194
194
195
195
llvm::StringRef GetInstanceVariableName () override { return " self" ; }
196
196
197
- bool SupportsExceptionBreakpoints () const override { return true ; }
197
+ bool SupportsExceptionBreakpointsOnThrow () const override { return true ; }
198
198
199
199
// PluginInterface protocol
200
200
llvm::StringRef GetPluginName () override { return GetPluginNameStatic (); }
You can’t perform that action at this time.
0 commit comments