[Lldb-commits] [lldb] r262925 - Fix log in Broadcaster causing a crash
Tamas Berghammer via lldb-commits
lldb-commits at lists.llvm.org
Tue Mar 8 05:33:14 PST 2016
Author: tberghammer
Date: Tue Mar 8 07:33:14 2016
New Revision: 262925
URL: http://llvm.org/viewvc/llvm-project?rev=262925&view=rev
Log:
Fix log in Broadcaster causing a crash
Modified:
lldb/trunk/source/Core/Broadcaster.cpp
Modified: lldb/trunk/source/Core/Broadcaster.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Core/Broadcaster.cpp?rev=262925&r1=262924&r2=262925&view=diff
==============================================================================
--- lldb/trunk/source/Core/Broadcaster.cpp (original)
+++ lldb/trunk/source/Core/Broadcaster.cpp Tue Mar 8 07:33:14 2016
@@ -25,8 +25,11 @@ Broadcaster::Broadcaster(BroadcasterMana
m_broadcaster_sp(new BroadcasterImpl(*this)),
m_manager_sp(manager_sp),
m_broadcaster_name(name)
-
{
+ Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_OBJECT));
+ if (log)
+ log->Printf ("%p Broadcaster::Broadcaster(\"%s\")",
+ static_cast<void*>(this), GetBroadcasterName().AsCString());
}
Broadcaster::BroadcasterImpl::BroadcasterImpl (Broadcaster &broadcaster) :
@@ -36,10 +39,6 @@ Broadcaster::BroadcasterImpl::Broadcaste
m_hijacking_listeners(),
m_hijacking_masks()
{
- Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_OBJECT));
- if (log)
- log->Printf ("%p Broadcaster::Broadcaster(\"%s\")",
- static_cast<void*>(this), m_broadcaster.GetBroadcasterName().AsCString());
}
Broadcaster::~Broadcaster()
More information about the lldb-commits
mailing list