[Lldb-commits] [lldb] [LLDB] Ptrace seize dead process (PR #137041)

David Spickett via lldb-commits lldb-commits at lists.llvm.org
Thu May 1 05:35:48 PDT 2025


================
@@ -1676,7 +1681,11 @@ GDBRemoteCommunication::PacketResult
 GDBRemoteCommunicationServerLLGS::Handle_vCont_actions(
     StringExtractorGDBRemote &packet) {
   StreamString response;
-  response.Printf("vCont;c;C;s;S;t");
+  if (m_current_process && m_current_process->CanResume()) {
+    response.Printf("vCont;c;C;s;S;t");
+  } else {
+    response.Printf("vCont");
----------------
DavidSpickett wrote:

What does this do if the process can't resume anyway?

https://sourceware.org/gdb/current/onlinedocs/gdb.html/Packets.html#vCont-packet

Or is this just a WIP implementation, and doing something rather than nothing meant you didn't have to change a bunch of other stuff.

https://github.com/llvm/llvm-project/pull/137041


More information about the lldb-commits mailing list