[Lldb-commits] [lldb] r274032 - Process::StopForDetachOrDestroy should actually return an error if it can't stop the
Jim Ingham via lldb-commits
lldb-commits at lists.llvm.org
Tue Jun 28 09:35:58 PDT 2016
Author: jingham
Date: Tue Jun 28 11:35:58 2016
New Revision: 274032
URL: http://llvm.org/viewvc/llvm-project?rev=274032&view=rev
Log:
Process::StopForDetachOrDestroy should actually return an error if it can't stop the
process.
<rdar://problem/26990309>
Modified:
lldb/trunk/source/Target/Process.cpp
Modified: lldb/trunk/source/Target/Process.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Target/Process.cpp?rev=274032&r1=274031&r2=274032&view=diff
==============================================================================
--- lldb/trunk/source/Target/Process.cpp (original)
+++ lldb/trunk/source/Target/Process.cpp Tue Jun 28 11:35:58 2016
@@ -3683,7 +3683,7 @@ Process::StopForDestroyOrDetach(lldb::Ev
StateType private_state = m_private_state.GetValue();
if (private_state != eStateStopped)
{
- return error;
+ return Error("Attempt to stop the target in order to detach timed out. State = %s", StateAsCString(GetState()));
}
}
}
More information about the lldb-commits
mailing list