================
@@ -178,15 +182,14 @@ void SendThreadStoppedEvent(DAP &dap) {
SendThreadExitedEvent(dap, tid);
}
} else {
- if (dap.log)
- *dap.log << "error: SendThreadStoppedEvent() when process"
- " isn't stopped ("
- << lldb::SBDebugger::StateAsCString(state) << ')' <<
std::endl;
+ LLDB_LOG(GetLog(DAPLog::Protocol),
+ "error: SendThreadStoppedEvent() when process"
+ " isn't stopped ({0})",
+ lldb::SBDebugger::StateAsCString(state));
}
} else {
- if (dap.log)
- *dap.log << "error: SendThreadStoppedEvent() invalid process"
- << std::endl;
+ LLDB_LOG(GetLog(DAPLog::Protocol),
+ "error: SendThreadStoppedEvent() invalid process");
----------------
vogelsgesang wrote:
Do those two messages really fit into the "protocol" log category? I thought
they would rather be "internal assertion failures" / "programming bugs inside
lldb-dap"?
https://github.com/llvm/llvm-project/pull/129294
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits