aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.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/GDBRemoteCommunicationClient.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/GDBRemoteCommunicationClient.cpp')
-rw-r--r--lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp
index d005cf1..e42526c 100644
--- a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp
+++ b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp
@@ -3702,7 +3702,6 @@ GDBRemoteCommunicationClient::SendTraceStart(const llvm::json::Value &params,
std::string json_string;
llvm::raw_string_ostream os(json_string);
os << params;
- os.flush();
escaped_packet.PutEscapedBytes(json_string.c_str(), json_string.size());