summaryrefslogtreecommitdiffstats
path: root/lldb/source/Interpreter/CommandInterpreter.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/Interpreter/CommandInterpreter.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/Interpreter/CommandInterpreter.cpp')
-rw-r--r--lldb/source/Interpreter/CommandInterpreter.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/lldb/source/Interpreter/CommandInterpreter.cpp b/lldb/source/Interpreter/CommandInterpreter.cpp
index 9d6ac257ee8..8b4dc81561b 100644
--- a/lldb/source/Interpreter/CommandInterpreter.cpp
+++ b/lldb/source/Interpreter/CommandInterpreter.cpp
@@ -59,13 +59,20 @@
using namespace lldb;
using namespace lldb_private;
+ConstString &
+CommandInterpreter::GetStaticBroadcasterClass ()
+{
+ static ConstString class_name ("lldb.commandInterpreter");
+ return class_name;
+}
+
CommandInterpreter::CommandInterpreter
(
Debugger &debugger,
ScriptLanguage script_language,
bool synchronous_execution
) :
- Broadcaster ("lldb.command-interpreter"),
+ Broadcaster (&debugger, "lldb.command-interpreter"),
m_debugger (debugger),
m_synchronous_execution (synchronous_execution),
m_skip_lldbinit_files (false),
@@ -86,6 +93,8 @@ CommandInterpreter::CommandInterpreter
SetEventName (eBroadcastBitThreadShouldExit, "thread-should-exit");
SetEventName (eBroadcastBitResetPrompt, "reset-prompt");
SetEventName (eBroadcastBitQuitCommandReceived, "quit");
+
+ CheckInWithManager ();
}
void
OpenPOWER on IntegriCloud