[Lldb-commits] [PATCH] D79614: Fix error reporting for qLaunchSuccess, check for fix/enable it via qSupported
Jason Molenda via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Mon May 11 20:31:51 PDT 2020
This revision was not accepted when it landed; it landed in state "Needs Review".
This revision was automatically updated to reflect the committed changes.
Closed by commit rG2b8b783b1ab4: Quote error string from qLaunchSuccess (authored by jasonmolenda).
Changed prior to commit:
https://reviews.llvm.org/D79614?vs=262810&id=263341#toc
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D79614/new/
https://reviews.llvm.org/D79614
Files:
lldb/tools/debugserver/source/RNBRemote.cpp
Index: lldb/tools/debugserver/source/RNBRemote.cpp
===================================================================
--- lldb/tools/debugserver/source/RNBRemote.cpp
+++ lldb/tools/debugserver/source/RNBRemote.cpp
@@ -1643,7 +1643,9 @@
return SendPacket("OK");
std::ostringstream ret_str;
std::string status_str;
- ret_str << "E" << m_ctx.LaunchStatusAsString(status_str);
+ std::string error_quoted = binary_encode_string
+ (m_ctx.LaunchStatusAsString(status_str));
+ ret_str << "E" << error_quoted;
return SendPacket(ret_str.str());
}
@@ -2677,8 +2679,9 @@
std::string hex_str;
hex_str.reserve (strlen (str) * 2);
while (str && *str) {
+ uint8_t c = *str++;
char hexbuf[5];
- snprintf (hexbuf, sizeof(hexbuf), "%02x", *str++);
+ snprintf (hexbuf, sizeof(hexbuf), "%02x", c);
hex_str += hexbuf;
}
return hex_str;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D79614.263341.patch
Type: text/x-patch
Size: 883 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20200512/e369cfd4/attachment-0001.bin>
More information about the lldb-commits
mailing list