From 5d7be2e6179b165f99ad1d6853b48be9ac5883ba Mon Sep 17 00:00:00 2001 From: Caroline Tice Date: Tue, 2 Nov 2010 16:16:53 +0000 Subject: Fix problem where "process detach" was not working properly. The ptrace thread update that was replying to the SIGSTOP was also causing the process to not really be sigstop'd any more so then the call to ptrace detach was failing, and when debugserver exited the attached process was being killed. Now the ptrace thread update does not disturb the sigstop state of the thread, so the detach works properly. llvm-svn: 118018 --- lldb/source/Commands/CommandObjectProcess.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'lldb/source/Commands/CommandObjectProcess.cpp') diff --git a/lldb/source/Commands/CommandObjectProcess.cpp b/lldb/source/Commands/CommandObjectProcess.cpp index 5a54c3d..8c4ffdd 100644 --- a/lldb/source/Commands/CommandObjectProcess.cpp +++ b/lldb/source/Commands/CommandObjectProcess.cpp @@ -836,6 +836,7 @@ public: return false; } + result.AppendMessageWithFormat ("Detaching from process %i\n", process->GetID()); Error error (process->Detach()); if (error.Success()) { -- cgit v1.1