diff options
author | Daniel Malea <daniel.malea@gmail.com> | 2013-10-09 16:56:28 +0000 |
---|---|---|
committer | Daniel Malea <daniel.malea@gmail.com> | 2013-10-09 16:56:28 +0000 |
commit | 9e9919f0431cc2ddc297813bdb772c776d14281c (patch) | |
tree | 9fc64172e8c060981cd91d805054733d2f4fdd3c /lldb/source/Commands/CommandObjectProcess.cpp | |
parent | a25c79e7045fa1d92e9777a3dce8902a7963eb4c (diff) | |
download | llvm-9e9919f0431cc2ddc297813bdb772c776d14281c.zip llvm-9e9919f0431cc2ddc297813bdb772c776d14281c.tar.gz llvm-9e9919f0431cc2ddc297813bdb772c776d14281c.tar.bz2 |
Allow Process::WaitForProcessToStop to return immediately if process is already in the stopped state
- By default, the above function will wait for at least one event
- Set wait_always=false to make the function return immediately if the process is already stopped
llvm-svn: 192301
Diffstat (limited to 'lldb/source/Commands/CommandObjectProcess.cpp')
-rw-r--r-- | lldb/source/Commands/CommandObjectProcess.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Commands/CommandObjectProcess.cpp b/lldb/source/Commands/CommandObjectProcess.cpp index 3e7a0b4..8bdec6e 100644 --- a/lldb/source/Commands/CommandObjectProcess.cpp +++ b/lldb/source/Commands/CommandObjectProcess.cpp @@ -302,7 +302,7 @@ protected: if (m_options.launch_info.GetFlags().Test(eLaunchFlagStopAtEntry) == false) { result.SetStatus (eReturnStatusSuccessContinuingNoResult); - StateType state = process->WaitForProcessToStop (NULL); + StateType state = process->WaitForProcessToStop (NULL, NULL, false); if (state == eStateStopped) { |