mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-12-01 01:31:29 +00:00
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
This commit is contained in:
1 parent
3ca3cd1ed7
commit
a23f73dbbc
14 files changed
+221
-30
No files matched your search
@@ -785,13 +785,21 @@ 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");
|
||||
|
||||
Reference in new issue
Block a user