================
@@ -3944,15 +3955,22 @@ rnb_err_t RNBRemote::HandlePacket_v(const char *p) {
// The order of these checks is important.
if (process_does_not_exist (pid_attaching_to)) {
DNBLogError("Tried to attach to pid that doesn't exist");
- std::string return_message = "E96;";
- return_message += cstring_to_asciihex_string("no such process.");
+ std::string return_message = "E96";
+ if (m_enable_error_strings) {
+ return_message += ";";
+ return_message += cstring_to_asciihex_string("no such process.");
+ }
return SendPacket(return_message);
}
if (process_is_already_being_debugged (pid_attaching_to)) {
DNBLogError("Tried to attach to process already being debugged");
- std::string return_message = "E96;";
- return_message += cstring_to_asciihex_string("tried to attach to "
+ std::string return_message = "E96";
+ if (m_enable_error_strings) {
+ return_message += ";";
+ return_message +=
+ cstring_to_asciihex_string("tried to attach to "
"process already being debugged");
----------------
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
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits