[Lldb-commits] [lldb] r124338 - /lldb/trunk/source/Target/Process.cpp
Greg Clayton
gclayton at apple.com
Wed Jan 26 15:47:30 PST 2011
Author: gclayton
Date: Wed Jan 26 17:47:29 2011
New Revision: 124338
URL: http://llvm.org/viewvc/llvm-project?rev=124338&view=rev
Log:
Fixed a crasher when there is no log in Process::SetExitStatus (...).
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=124338&r1=124337&r2=124338&view=diff
==============================================================================
--- lldb/trunk/source/Target/Process.cpp (original)
+++ lldb/trunk/source/Target/Process.cpp Wed Jan 26 17:47:29 2011
@@ -566,7 +566,8 @@
// We were already in the exited state
if (m_private_state.GetValue() == eStateExited)
{
- log->Printf("Process::SetExitStatus () ignoring exit status because state was already set to eStateExited");
+ if (log)
+ log->Printf("Process::SetExitStatus () ignoring exit status because state was already set to eStateExited");
return false;
}
More information about the lldb-commits
mailing list