diff options
author | Sean Callanan <scallanan@apple.com> | 2011-08-09 22:07:08 +0000 |
---|---|---|
committer | Sean Callanan <scallanan@apple.com> | 2011-08-09 22:07:08 +0000 |
commit | 39821ac8270aa03e06d3cdb37435271d777260fe (patch) | |
tree | afb4cd398b256360be2d1c2d99317e74c6908524 /lldb/source/Target/Process.cpp | |
parent | 406dc1755f9b46930c47f9378749218f65ed2721 (diff) | |
download | bcm5719-llvm-39821ac8270aa03e06d3cdb37435271d777260fe.tar.gz bcm5719-llvm-39821ac8270aa03e06d3cdb37435271d777260fe.zip |
Fixed a potential crash in Process.cpp when we
used a log unchecked.
llvm-svn: 137157
Diffstat (limited to 'lldb/source/Target/Process.cpp')
-rw-r--r-- | lldb/source/Target/Process.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lldb/source/Target/Process.cpp b/lldb/source/Target/Process.cpp index 13d6b94e82c..2518b988781 100644 --- a/lldb/source/Target/Process.cpp +++ b/lldb/source/Target/Process.cpp @@ -3724,8 +3724,9 @@ Process::RunThreadPlan (ExecutionContext &exe_ctx, } 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; } |