@@ -74,21 +74,21 @@ void DAP::PopulateExceptionBreakpoints() {
7474 exception_breakpoints = std::vector<ExceptionBreakpoint>{};
7575
7676 if (lldb::SBDebugger::SupportsLanguage (lldb::eLanguageTypeC_plus_plus)) {
77- exception_breakpoints->emplace_back (" cpp_catch" , " C++ Catch" ,
77+ exception_breakpoints->emplace_back (* this , " cpp_catch" , " C++ Catch" ,
7878 lldb::eLanguageTypeC_plus_plus);
79- exception_breakpoints->emplace_back (" cpp_throw" , " C++ Throw" ,
79+ exception_breakpoints->emplace_back (* this , " cpp_throw" , " C++ Throw" ,
8080 lldb::eLanguageTypeC_plus_plus);
8181 }
8282 if (lldb::SBDebugger::SupportsLanguage (lldb::eLanguageTypeObjC)) {
83- exception_breakpoints->emplace_back (" objc_catch " , " Objective-C Catch " ,
84- lldb::eLanguageTypeObjC);
85- exception_breakpoints->emplace_back (" objc_throw " , " Objective-C Throw " ,
86- lldb::eLanguageTypeObjC);
83+ exception_breakpoints->emplace_back (
84+ * this , " objc_catch " , " Objective-C Catch " , lldb::eLanguageTypeObjC);
85+ exception_breakpoints->emplace_back (
86+ * this , " objc_throw " , " Objective-C Throw " , lldb::eLanguageTypeObjC);
8787 }
8888 if (lldb::SBDebugger::SupportsLanguage (lldb::eLanguageTypeSwift)) {
89- exception_breakpoints->emplace_back (" swift_catch" , " Swift Catch" ,
89+ exception_breakpoints->emplace_back (* this , " swift_catch" , " Swift Catch" ,
9090 lldb::eLanguageTypeSwift);
91- exception_breakpoints->emplace_back (" swift_throw" , " Swift Throw" ,
91+ exception_breakpoints->emplace_back (* this , " swift_throw" , " Swift Throw" ,
9292 lldb::eLanguageTypeSwift);
9393 }
9494 // Besides handling the hardcoded list of languages from above, we try to
@@ -119,7 +119,7 @@ void DAP::PopulateExceptionBreakpoints() {
119119 raw_throw_keyword ? raw_throw_keyword : " throw" ;
120120
121121 exception_breakpoints->emplace_back (
122- raw_lang_name + " _" + throw_keyword,
122+ * this , raw_lang_name + " _" + throw_keyword,
123123 capitalized_lang_name + " " + capitalize (throw_keyword), lang);
124124 }
125125
@@ -130,7 +130,7 @@ void DAP::PopulateExceptionBreakpoints() {
130130 raw_catch_keyword ? raw_catch_keyword : " catch" ;
131131
132132 exception_breakpoints->emplace_back (
133- raw_lang_name + " _" + catch_keyword,
133+ * this , raw_lang_name + " _" + catch_keyword,
134134 capitalized_lang_name + " " + capitalize (catch_keyword), lang);
135135 }
136136 }
@@ -1060,7 +1060,7 @@ void DAP::SetThreadFormat(llvm::StringRef format) {
10601060InstructionBreakpoint *
10611061DAP::GetInstructionBreakpoint (const lldb::break_id_t bp_id) {
10621062 for (auto &bp : instruction_breakpoints) {
1063- if (bp.second .id == bp_id)
1063+ if (bp.second .bp . GetID () == bp_id)
10641064 return &bp.second ;
10651065 }
10661066 return nullptr ;
0 commit comments