diff options
author | Pavel Labath <pavel@labath.sk> | 2019-02-12 14:28:55 +0000 |
---|---|---|
committer | Pavel Labath <pavel@labath.sk> | 2019-02-12 14:28:55 +0000 |
commit | 7f815a9a427d149604ec7cfececee132c21b7505 (patch) | |
tree | 3eff5617f5748f455e23f3a9ba81ce0f86694402 /lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServer.cpp | |
parent | 6597fdd508f248f8bbb70b6fbf34b940677f2767 (diff) | |
download | bcm5719-llvm-7f815a9a427d149604ec7cfececee132c21b7505.tar.gz bcm5719-llvm-7f815a9a427d149604ec7cfececee132c21b7505.zip |
Have Stream::PutCStringAsRawHex8 take llvm::StringRef
This enables the function to be called with a StringRef without jumping
through any hoops. I rename the function to "PutStringAsRawHex8" to
honor the extended interface. I also remove ".c_str()" from any calls to
this function I could find.
llvm-svn: 353841
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServer.cpp')
-rw-r--r-- | lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServer.cpp b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServer.cpp index ddcd4cbbeb0..f27573a2f9e 100644 --- a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServer.cpp +++ b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServer.cpp @@ -106,7 +106,7 @@ GDBRemoteCommunicationServer::SendErrorResponse(const Status &error) { if (m_send_error_strings) { lldb_private::StreamString packet; packet.Printf("E%2.2x;", static_cast<uint8_t>(error.GetError())); - packet.PutCStringAsRawHex8(error.AsCString()); + packet.PutStringAsRawHex8(error.AsCString()); return SendPacketNoLock(packet.GetString()); } else return SendErrorResponse(error.GetError()); |