We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b0e3865 commit 9c90520Copy full SHA for 9c90520
lldb/tools/lldb-dap/DAP.cpp
@@ -1408,12 +1408,11 @@ void DAP::EventThread() {
1408
// CreateBreakpoint doesn't apply source mapping and certain
1409
// implementation ignore the source part of this event anyway.
1410
protocol::Breakpoint protocol_bp = bp.ToProtocolBreakpoint();
1411
- llvm::json::Value protocol_bp_value = toJSON(protocol_bp);
1412
1413
// "source" is not needed here, unless we add adapter data to be
1414
// saved by the client.
1415
if (protocol_bp.source && !protocol_bp.source->adapterData)
1416
- protocol_bp_value.getAsObject()->erase("source");
+ protocol_bp.source = std::nullopt;
1417
1418
llvm::json::Object body;
1419
body.try_emplace("breakpoint", protocol_bp);
0 commit comments