aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServer.cpp
diff options
context:
space:
mode:
authorYoungsuk Kim <youngsuk.kim@hpe.com>2024-09-26 12:29:14 -0400
committerGitHub <noreply@github.com>2024-09-26 12:29:14 -0400
commitf35719ff670521454c8dfd83ec9d55dde65a5c3d (patch)
treef0fc2e52a5f5bd9d1ba8099c379729a537e1aae8 /lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServer.cpp
parent24d707e215a1e2d34d5c34156573a8607ab349f9 (diff)
downloadllvm-f35719ff670521454c8dfd83ec9d55dde65a5c3d.zip
llvm-f35719ff670521454c8dfd83ec9d55dde65a5c3d.tar.gz
llvm-f35719ff670521454c8dfd83ec9d55dde65a5c3d.tar.bz2
[lldb] Don't flush llvm::raw_string_ostream (NFC) (#110128)
Don't call raw_string_ostream::flush(), which is essentially a no-op. As specified in the docs, raw_string_ostream is always unbuffered. ( 65b13610a5226b84889b923bae884ba395ad084d for further reference )
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServer.cpp')
-rw-r--r--lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServer.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServer.cpp b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServer.cpp
index d4aa90b..5bd29ae 100644
--- a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServer.cpp
+++ b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServer.cpp
@@ -155,7 +155,6 @@ GDBRemoteCommunicationServer::SendJSONResponse(const json::Value &value) {
std::string json_string;
raw_string_ostream os(json_string);
os << value;
- os.flush();
StreamGDBRemote escaped_response;
escaped_response.PutEscapedBytes(json_string.c_str(), json_string.size());
return SendPacketNoLock(escaped_response.GetString());