summaryrefslogtreecommitdiffstats
path: root/lldb/source/Core/Communication.cpp
diff options
context:
space:
mode:
authorJim Ingham <jingham@apple.com>2012-02-16 06:50:00 +0000
committerJim Ingham <jingham@apple.com>2012-02-16 06:50:00 +0000
commit4bddaeb5ab64cae450fafb419553d34d242fb512 (patch)
tree64cd496a3b9cc1b50b9d5e3c82b3d150f5c00786 /lldb/source/Core/Communication.cpp
parent924f9a671d8a9e6156ea4519ad9f1ce36c708978 (diff)
downloadbcm5719-llvm-4bddaeb5ab64cae450fafb419553d34d242fb512.tar.gz
bcm5719-llvm-4bddaeb5ab64cae450fafb419553d34d242fb512.zip
Add a general mechanism to wait on the debugger for Broadcasters of a given class/event bit set.
Use this to allow the lldb Driver to emit notifications for breakpoint modifications. <rdar://problem/10619974> llvm-svn: 150665
Diffstat (limited to 'lldb/source/Core/Communication.cpp')
-rw-r--r--lldb/source/Core/Communication.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/lldb/source/Core/Communication.cpp b/lldb/source/Core/Communication.cpp
index 45850f3858b..35af6440df2 100644
--- a/lldb/source/Core/Communication.cpp
+++ b/lldb/source/Core/Communication.cpp
@@ -23,11 +23,18 @@
using namespace lldb;
using namespace lldb_private;
+ConstString &
+Communication::GetStaticBroadcasterClass ()
+{
+ static ConstString class_name ("lldb.communication");
+ return class_name;
+}
+
//----------------------------------------------------------------------
// Constructor
//----------------------------------------------------------------------
Communication::Communication(const char *name) :
- Broadcaster (name),
+ Broadcaster (NULL, name),
m_connection_sp (),
m_read_thread (LLDB_INVALID_HOST_THREAD),
m_read_thread_enabled (false),
@@ -48,6 +55,8 @@ Communication::Communication(const char *name) :
SetEventName (eBroadcastBitReadThreadDidExit, "read thread did exit");
SetEventName (eBroadcastBitReadThreadShouldExit, "read thread should exit");
SetEventName (eBroadcastBitPacketAvailable, "packet available");
+
+ CheckInWithManager();
}
//----------------------------------------------------------------------
OpenPOWER on IntegriCloud