Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 4 additions & 9 deletions lldb/tools/lldb-dap/DAP.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1292,22 +1292,17 @@ void DAP::EventThread() {

llvm::StringRef reason;
bool id_only = false;
if (event_mask & lldb::SBTarget::eBroadcastBitModulesLoaded) {
modules.insert(module_id);
reason = "new";
} else {
// If this is a module we've never told the client about, don't
// send an event.
if (!modules.contains(module_id))
continue;

if (modules.contains(module_id)) {
if (event_mask & lldb::SBTarget::eBroadcastBitModulesUnloaded) {
modules.erase(module_id);
reason = "removed";
id_only = true;
} else {
reason = "changed";
}
} else {
modules.insert(module_id);
reason = "new";
}

llvm::json::Object body;
Expand Down
Loading