[Lldb-commits] [lldb] r120949 - in /lldb/trunk: include/lldb/API/SBBroadcaster.h source/API/SBBroadcaster.cpp
Greg Clayton
gclayton at apple.com
Sun Dec 5 11:36:39 PST 2010
Author: gclayton
Date: Sun Dec 5 13:36:39 2010
New Revision: 120949
URL: http://llvm.org/viewvc/llvm-project?rev=120949&view=rev
Log:
Added "void SBBroadcaster::Clear ();" method to SBBroadcaster.
Modified:
lldb/trunk/include/lldb/API/SBBroadcaster.h
lldb/trunk/source/API/SBBroadcaster.cpp
Modified: lldb/trunk/include/lldb/API/SBBroadcaster.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/include/lldb/API/SBBroadcaster.h?rev=120949&r1=120948&r2=120949&view=diff
==============================================================================
--- lldb/trunk/include/lldb/API/SBBroadcaster.h (original)
+++ lldb/trunk/include/lldb/API/SBBroadcaster.h Sun Dec 5 13:36:39 2010
@@ -34,6 +34,9 @@
IsValid () const;
void
+ Clear ();
+
+ void
BroadcastEventByType (uint32_t event_type, bool unique = false);
void
Modified: lldb/trunk/source/API/SBBroadcaster.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/API/SBBroadcaster.cpp?rev=120949&r1=120948&r2=120949&view=diff
==============================================================================
--- lldb/trunk/source/API/SBBroadcaster.cpp (original)
+++ lldb/trunk/source/API/SBBroadcaster.cpp Sun Dec 5 13:36:39 2010
@@ -170,6 +170,13 @@
return m_opaque_ptr != NULL;
}
+void
+SBBroadcaster::Clear ()
+{
+ m_opaque_sp.reset();
+ m_opaque_ptr = NULL;
+}
+
bool
SBBroadcaster::operator == (const SBBroadcaster &rhs) const
{
More information about the lldb-commits
mailing list