File tree Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -540,22 +540,17 @@ void EventThreadFunction(DAP &dap) {
540
540
541
541
llvm::StringRef reason;
542
542
bool id_only = false ;
543
- if (event_mask & lldb::SBTarget::eBroadcastBitModulesLoaded) {
544
- dap.modules .insert (module_id);
545
- reason = " new" ;
546
- } else {
547
- // If this is a module we've never told the client about, don't
548
- // send an event.
549
- if (!dap.modules .contains (module_id))
550
- continue ;
551
-
543
+ if (dap.modules .contains (module_id)) {
552
544
if (event_mask & lldb::SBTarget::eBroadcastBitModulesUnloaded) {
553
545
dap.modules .erase (module_id);
554
546
reason = " removed" ;
555
547
id_only = true ;
556
548
} else {
557
549
reason = " changed" ;
558
550
}
551
+ } else {
552
+ dap.modules .insert (module_id);
553
+ reason = " new" ;
559
554
}
560
555
561
556
llvm::json::Object body;
You can’t perform that action at this time.
0 commit comments