@@ -183,17 +183,6 @@ ExceptionBreakpoint *DAP::GetExceptionBreakpoint(const std::string &filter) {
183
183
return nullptr ;
184
184
}
185
185
186
- ExceptionBreakpoint *DAP::GetExceptionBreakpoint (const lldb::break_id_t bp_id) {
187
- // See comment in the other GetExceptionBreakpoint().
188
- PopulateExceptionBreakpoints ();
189
-
190
- for (auto &bp : *exception_breakpoints) {
191
- if (bp.bp .GetID () == bp_id)
192
- return &bp;
193
- }
194
- return nullptr ;
195
- }
196
-
197
186
llvm::Error DAP::ConfigureIO (std::FILE *overrideOut, std::FILE *overrideErr) {
198
187
in = lldb::SBFile (std::fopen (DEV_NULL, " r" ), /* transfer_ownership=*/ true );
199
188
@@ -444,27 +433,6 @@ DAP::SendFormattedOutput(OutputType o, const char *format, ...) {
444
433
o, llvm::StringRef (buffer, std::min<int >(actual_length, sizeof (buffer))));
445
434
}
446
435
447
- ExceptionBreakpoint *DAP::GetExceptionBPFromStopReason (lldb::SBThread &thread) {
448
- const auto num = thread.GetStopReasonDataCount ();
449
- // Check to see if have hit an exception breakpoint and change the
450
- // reason to "exception", but only do so if all breakpoints that were
451
- // hit are exception breakpoints.
452
- ExceptionBreakpoint *exc_bp = nullptr ;
453
- for (size_t i = 0 ; i < num; i += 2 ) {
454
- // thread.GetStopReasonDataAtIndex(i) will return the bp ID and
455
- // thread.GetStopReasonDataAtIndex(i+1) will return the location
456
- // within that breakpoint. We only care about the bp ID so we can
457
- // see if this is an exception breakpoint that is getting hit.
458
- lldb::break_id_t bp_id = thread.GetStopReasonDataAtIndex (i);
459
- exc_bp = GetExceptionBreakpoint (bp_id);
460
- // If any breakpoint is not an exception breakpoint, then stop and
461
- // report this as a normal breakpoint
462
- if (exc_bp == nullptr )
463
- return nullptr ;
464
- }
465
- return exc_bp;
466
- }
467
-
468
436
lldb::SBThread DAP::GetLLDBThread (const llvm::json::Object &arguments) {
469
437
auto tid = GetInteger<int64_t >(arguments, " threadId" )
470
438
.value_or (LLDB_INVALID_THREAD_ID);
@@ -1074,32 +1042,6 @@ DAP::GetInstructionBPFromStopReason(lldb::SBThread &thread) {
1074
1042
return inst_bp;
1075
1043
}
1076
1044
1077
- FunctionBreakpoint *DAP::GetFunctionBPFromStopReason (lldb::SBThread &thread) {
1078
- const auto num = thread.GetStopReasonDataCount ();
1079
- FunctionBreakpoint *func_bp = nullptr ;
1080
- for (size_t i = 0 ; i < num; i += 2 ) {
1081
- // thread.GetStopReasonDataAtIndex(i) will return the bp ID and
1082
- // thread.GetStopReasonDataAtIndex(i+1) will return the location
1083
- // within that breakpoint. We only care about the bp ID so we can
1084
- // see if this is an function breakpoint that is getting hit.
1085
- lldb::break_id_t bp_id = thread.GetStopReasonDataAtIndex (i);
1086
- func_bp = GetFunctionBreakPoint (bp_id);
1087
- // If any breakpoint is not an function breakpoint, then stop and
1088
- // report this as a normal breakpoint
1089
- if (func_bp == nullptr )
1090
- return nullptr ;
1091
- }
1092
- return func_bp;
1093
- }
1094
-
1095
- FunctionBreakpoint *DAP::GetFunctionBreakPoint (const lldb::break_id_t bp_id) {
1096
- for (auto &bp : function_breakpoints) {
1097
- if (bp.second .bp .GetID () == bp_id)
1098
- return &bp.second ;
1099
- }
1100
- return nullptr ;
1101
- }
1102
-
1103
1045
lldb::SBValueList *Variables::GetTopLevelScope (int64_t variablesReference) {
1104
1046
switch (variablesReference) {
1105
1047
case VARREF_LOCALS:
0 commit comments