aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lldb/source/Target/Process.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lldb/source/Target/Process.cpp b/lldb/source/Target/Process.cpp
index ecf8ef1..9538299 100644
--- a/lldb/source/Target/Process.cpp
+++ b/lldb/source/Target/Process.cpp
@@ -566,7 +566,8 @@ Process::SetExitStatus (int status, const char *cstr)
// 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;
}