[Lldb-commits] [lldb] [lldb] [debugserver] fix qLaunchSuccess error, add QErrorStringInPacketSupported (PR #82593)
Greg Clayton via lldb-commits
lldb-commits at lists.llvm.org
Thu Feb 22 10:43:50 PST 2024
================
@@ -3969,30 +3987,43 @@ rnb_err_t RNBRemote::HandlePacket_v(const char *p) {
process_username = pw->pw_name;
}
DNBLogError("Tried to attach to process with uid mismatch");
- std::string return_message = "E96;";
- std::string msg = "tried to attach to process as user '"
- + my_username + "' and process is running "
- "as user '" + process_username + "'";
- return_message += cstring_to_asciihex_string(msg.c_str());
+ std::string return_message = "E96";
+ if (m_enable_error_strings) {
+ return_message += ";";
+ std::string msg = "tried to attach to process as user '" +
+ my_username +
+ "' and process is running "
+ "as user '" +
+ process_username + "'";
----------------
clayborg wrote:
not ended with a '.' here, we pick how we want to do it and do it consistently
https://github.com/llvm/llvm-project/pull/82593
More information about the lldb-commits
mailing list