diff options
author | Greg Clayton <gclayton@apple.com> | 2011-01-26 23:47:29 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2011-01-26 23:47:29 +0000 |
commit | 385d603825e66571fc657d34a97bcfdd4eb521da (patch) | |
tree | 1c7fad9389ae52c9ba90ffb51ccd9720e401849f /lldb/source/Target/Process.cpp | |
parent | 9c40302b3bf457abe13e35cbc391debcefc64584 (diff) | |
download | bcm5719-llvm-385d603825e66571fc657d34a97bcfdd4eb521da.tar.gz bcm5719-llvm-385d603825e66571fc657d34a97bcfdd4eb521da.zip |
Fixed a crasher when there is no log in Process::SetExitStatus (...).
llvm-svn: 124338
Diffstat (limited to 'lldb/source/Target/Process.cpp')
-rw-r--r-- | lldb/source/Target/Process.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lldb/source/Target/Process.cpp b/lldb/source/Target/Process.cpp index ecf8ef1ba57..9538299c2a7 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; } |