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) {
540540
541541 llvm::StringRef reason;
542542 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)) {
552544 if (event_mask & lldb::SBTarget::eBroadcastBitModulesUnloaded) {
553545 dap.modules .erase (module_id);
554546 reason = " removed" ;
555547 id_only = true ;
556548 } else {
557549 reason = " changed" ;
558550 }
551+ } else {
552+ dap.modules .insert (module_id);
553+ reason = " new" ;
559554 }
560555
561556 llvm::json::Object body;
You can’t perform that action at this time.
0 commit comments