[Lldb-commits] [lldb] r137157 - /lldb/trunk/source/Target/Process.cpp
Sean Callanan
scallanan at apple.com
Tue Aug 9 15:07:08 PDT 2011
Author: spyffe
Date: Tue Aug 9 17:07:08 2011
New Revision: 137157
URL: http://llvm.org/viewvc/llvm-project?rev=137157&view=rev
Log:
Fixed a potential crash in Process.cpp when we
used a log unchecked.
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=137157&r1=137156&r2=137157&view=diff
==============================================================================
--- lldb/trunk/source/Target/Process.cpp (original)
+++ lldb/trunk/source/Target/Process.cpp Tue Aug 9 17:07:08 2011
@@ -3724,8 +3724,9 @@
}
else
{
- log->Printf ("Process::RunThreadPlan(): halt failed, I waited and didn't get"
- " a stopped event, instead got %s.", StateAsCString(stop_state));
+ if (log)
+ log->Printf ("Process::RunThreadPlan(): halt failed, I waited and didn't get"
+ " a stopped event, instead got %s.", StateAsCString(stop_state));
return_value = eExecutionInterrupted;
break;
}
More information about the lldb-commits
mailing list