diff options
author | Michael Buch <michaelbuch12@gmail.com> | 2022-08-19 18:05:04 +0100 |
---|---|---|
committer | Michael Buch <michaelbuch12@gmail.com> | 2022-08-19 18:05:41 +0100 |
commit | 5517401f936ab5cb9db001030f027293d44aac92 (patch) | |
tree | 2ff3d22b76cfe3c15d61f5a6479733da54195f79 /lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp | |
parent | 73a9dfcee24df959b59a46d75dcbdc0bcfb50fe6 (diff) | |
download | llvm-5517401f936ab5cb9db001030f027293d44aac92.zip llvm-5517401f936ab5cb9db001030f027293d44aac92.tar.gz llvm-5517401f936ab5cb9db001030f027293d44aac92.tar.bz2 |
Revert "[lldb] [gdb-remote] Include PID in vCont packets if multiprocess"
This reverts commit ccb9d4d4addc2fb2aa94cf776d43d8be35365272.
https://reviews.llvm.org/D131758
Differential Revision: https://reviews.llvm.org/D132250
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp')
-rw-r--r-- | lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp index 0c876a8..30fb279 100644 --- a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp +++ b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp @@ -1186,15 +1186,11 @@ Status ProcessGDBRemote::DoResume() { StreamString continue_packet; bool continue_packet_error = false; if (m_gdb_comm.HasAnyVContSupport()) { - std::string pid_prefix; - if (m_gdb_comm.GetMultiprocessSupported()) - pid_prefix = llvm::formatv("p{0:x-}.", GetID()); - if (m_continue_c_tids.size() == num_threads || (m_continue_c_tids.empty() && m_continue_C_tids.empty() && m_continue_s_tids.empty() && m_continue_S_tids.empty())) { - // All threads are continuing - continue_packet.Format("vCont;c:{0}-1", pid_prefix); + // All threads are continuing, just send a "c" packet + continue_packet.PutCString("c"); } else { continue_packet.PutCString("vCont"); @@ -1204,7 +1200,7 @@ Status ProcessGDBRemote::DoResume() { t_pos = m_continue_c_tids.begin(), t_end = m_continue_c_tids.end(); t_pos != t_end; ++t_pos) - continue_packet.Format(";c:{0}{1:x-}", pid_prefix, *t_pos); + continue_packet.Printf(";c:%4.4" PRIx64, *t_pos); } else continue_packet_error = true; } @@ -1215,8 +1211,8 @@ Status ProcessGDBRemote::DoResume() { s_pos = m_continue_C_tids.begin(), s_end = m_continue_C_tids.end(); s_pos != s_end; ++s_pos) - continue_packet.Format(";C{0:x-2}:{1}{2:x-}", s_pos->second, - pid_prefix, s_pos->first); + continue_packet.Printf(";C%2.2x:%4.4" PRIx64, s_pos->second, + s_pos->first); } else continue_packet_error = true; } @@ -1227,7 +1223,7 @@ Status ProcessGDBRemote::DoResume() { t_pos = m_continue_s_tids.begin(), t_end = m_continue_s_tids.end(); t_pos != t_end; ++t_pos) - continue_packet.Format(";s:{0}{1:x-}", pid_prefix, *t_pos); + continue_packet.Printf(";s:%4.4" PRIx64, *t_pos); } else continue_packet_error = true; } @@ -1238,8 +1234,8 @@ Status ProcessGDBRemote::DoResume() { s_pos = m_continue_S_tids.begin(), s_end = m_continue_S_tids.end(); s_pos != s_end; ++s_pos) - continue_packet.Format(";S{0:x-2}:{1}{2:x-}", s_pos->second, - pid_prefix, s_pos->first); + continue_packet.Printf(";S%2.2x:%4.4" PRIx64, s_pos->second, + s_pos->first); } else continue_packet_error = true; } |