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/API/SBProcess.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/API/SBProcess.cpp')
-rw-r--r-- | lldb/source/API/SBProcess.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/lldb/source/API/SBProcess.cpp b/lldb/source/API/SBProcess.cpp index ba45ce567d1..f04fed22843 100644 --- a/lldb/source/API/SBProcess.cpp +++ b/lldb/source/API/SBProcess.cpp @@ -786,12 +786,20 @@ SBProcess::Kill () SBError SBProcess::Detach () { + // FIXME: This should come from a process default. + bool keep_stopped = false; + Detach (keep_stopped); +} + +SBError +SBProcess::Detach (bool keep_stopped) +{ SBError sb_error; ProcessSP process_sp(GetSP()); if (process_sp) { Mutex::Locker api_locker (process_sp->GetTarget().GetAPIMutex()); - sb_error.SetError (process_sp->Detach()); + sb_error.SetError (process_sp->Detach(keep_stopped)); } else sb_error.SetErrorString ("SBProcess is invalid"); |