diff options
author | Jim Ingham <jingham@apple.com> | 2013-04-30 23:46:08 +0000 |
---|---|---|
committer | Jim Ingham <jingham@apple.com> | 2013-04-30 23:46:08 +0000 |
commit | a23f73dbbcbc6008162767d64bb019389e6a1bd7 (patch) | |
tree | 0ce26237946ccfc99aa54c9f17b996201de04fd2 /lldb/source/Plugins/Process/POSIX/ProcessPOSIX.cpp | |
parent | 3ca3cd1ed7f37eef0f9e9c0b39d64ee2d12815b4 (diff) | |
download | bcm5719-llvm-a23f73dbbcbc6008162767d64bb019389e6a1bd7.tar.gz bcm5719-llvm-a23f73dbbcbc6008162767d64bb019389e6a1bd7.zip |
Added an option to "process detach" to keep the process stopped, if the process plugin (or in the
case of ProcessGDBRemote the stub we are talking to) know how to do that.
rdar://problem/13680832
llvm-svn: 180831
Diffstat (limited to 'lldb/source/Plugins/Process/POSIX/ProcessPOSIX.cpp')
-rw-r--r-- | lldb/source/Plugins/Process/POSIX/ProcessPOSIX.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lldb/source/Plugins/Process/POSIX/ProcessPOSIX.cpp b/lldb/source/Plugins/Process/POSIX/ProcessPOSIX.cpp index 137fa46eddc..35c365f75c0 100644 --- a/lldb/source/Plugins/Process/POSIX/ProcessPOSIX.cpp +++ b/lldb/source/Plugins/Process/POSIX/ProcessPOSIX.cpp @@ -283,9 +283,16 @@ ProcessPOSIX::DoHalt(bool &caused_stop) } Error -ProcessPOSIX::DoDetach() +ProcessPOSIX::DoDetach(bool keep_stopped) { Error error; + if (keep_stopped) + { + // FIXME: If you want to implement keep_stopped on Linux, + // this would be the place to do it. + error.SetErrorString("Detaching with keep_stopped true is not currently supported on Linux."); + return error; + } error = m_monitor->Detach(); if (error.Success()) |