diff options
author | Caroline Tice <ctice@apple.com> | 2010-11-02 16:16:53 +0000 |
---|---|---|
committer | Caroline Tice <ctice@apple.com> | 2010-11-02 16:16:53 +0000 |
commit | 5d7be2e6179b165f99ad1d6853b48be9ac5883ba (patch) | |
tree | 000df268fec213720bb0cde323ac659bfd2941de /lldb/tools/debugserver/source/MacOSX/MachProcess.h | |
parent | 321ab7a1c8fcde0e2a115b0499b6f37eaad0314e (diff) | |
download | bcm5719-llvm-5d7be2e6179b165f99ad1d6853b48be9ac5883ba.tar.gz bcm5719-llvm-5d7be2e6179b165f99ad1d6853b48be9ac5883ba.zip |
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
Diffstat (limited to 'lldb/tools/debugserver/source/MacOSX/MachProcess.h')
-rw-r--r-- | lldb/tools/debugserver/source/MacOSX/MachProcess.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/tools/debugserver/source/MacOSX/MachProcess.h b/lldb/tools/debugserver/source/MacOSX/MachProcess.h index 69961b2c09f..fa0979d7e20 100644 --- a/lldb/tools/debugserver/source/MacOSX/MachProcess.h +++ b/lldb/tools/debugserver/source/MacOSX/MachProcess.h @@ -224,7 +224,7 @@ private: nub_size_t RemoveTrapsFromBuffer (nub_addr_t addr, nub_size_t size, uint8_t *buf) const; uint32_t Flags () const { return m_flags; } - nub_state_t DoSIGSTOP (bool clear_bps_and_wps); + nub_state_t DoSIGSTOP (bool clear_bps_and_wps, uint32_t *thread_idx_ptr = NULL); pid_t m_pid; // Process ID of child process int m_child_stdin; |