commit | 7de24cc82694ad5cdde03b90c2546b7d56b251ce | [log] [tgz] |
---|---|---|
author | Caroline Tice <ctice@apple.com> | Wed Oct 27 21:23:37 2010 +0000 |
committer | Caroline Tice <ctice@apple.com> | Wed Oct 27 21:23:37 2010 +0000 |
tree | 12476f1aa03b0e06a467f30204fe467808482df3 | |
parent | f81b4c5c3f8500aa9be9734f676608464ecb5472 [diff] [blame] |
Fix bugs attempting to write to API log after it has been disabled. git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@117493 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/API/SBCommandInterpreter.cpp b/source/API/SBCommandInterpreter.cpp index f6a95f9..cb2dd74 100644 --- a/source/API/SBCommandInterpreter.cpp +++ b/source/API/SBCommandInterpreter.cpp
@@ -87,6 +87,8 @@ result->SetStatus (eReturnStatusFailed); } + // We need to get the value again, in case the command disabled the log! + log = lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API); if (log) { SBStream sstr;