summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2010-12-14 23:43:15 +0000
committerGreg Clayton <gclayton@apple.com>2010-12-14 23:43:15 +0000
commitd695334156282ec882ab72f3538938c834b1ec90 (patch)
tree1f0dd9bdcdbe3d3485931069f09fc8161c5852e0
parent5ab38b59e6c20a2044da2aa76be6a95ec5d86ee4 (diff)
downloadbcm5719-llvm-d695334156282ec882ab72f3538938c834b1ec90.tar.gz
bcm5719-llvm-d695334156282ec882ab72f3538938c834b1ec90.zip
Fixed a crasher in the DWARF log channel code.
llvm-svn: 121810
-rw-r--r--lldb/source/Plugins/SymbolFile/DWARF/LogChannelDWARF.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lldb/source/Plugins/SymbolFile/DWARF/LogChannelDWARF.cpp b/lldb/source/Plugins/SymbolFile/DWARF/LogChannelDWARF.cpp
index db81ca80830..d053def0013 100644
--- a/lldb/source/Plugins/SymbolFile/DWARF/LogChannelDWARF.cpp
+++ b/lldb/source/Plugins/SymbolFile/DWARF/LogChannelDWARF.cpp
@@ -122,6 +122,9 @@ LogChannelDWARF::Delete ()
void
LogChannelDWARF::Disable (Args &categories, Stream *feedback_strm)
{
+ if (!m_log_sp)
+ return;
+
g_log_channel = this;
uint32_t flag_bits = m_log_sp->GetMask().Get();
const size_t argc = categories.GetArgumentCount();
OpenPOWER on IntegriCloud