diff options
Diffstat (limited to 'include/lldb/Core/Debugger.h')
-rw-r--r-- | include/lldb/Core/Debugger.h | 24 |
1 files changed, 19 insertions, 5 deletions
diff --git a/include/lldb/Core/Debugger.h b/include/lldb/Core/Debugger.h index e80ec8516793..7ab62e5b7f3a 100644 --- a/include/lldb/Core/Debugger.h +++ b/include/lldb/Core/Debugger.h @@ -31,6 +31,14 @@ #include "lldb/Target/Platform.h" #include "lldb/Target/TargetList.h" +namespace llvm +{ +namespace sys +{ +class DynamicLibrary; +} +} + namespace lldb_private { //---------------------------------------------------------------------- @@ -51,9 +59,9 @@ friend class SourceManager; // For GetSourceFileCache. public: - typedef lldb::DynamicLibrarySP (*LoadPluginCallbackType) (const lldb::DebuggerSP &debugger_sp, - const FileSpec& spec, - Error& error); + typedef llvm::sys::DynamicLibrary (*LoadPluginCallbackType) (const lldb::DebuggerSP &debugger_sp, + const FileSpec& spec, + Error& error); static lldb::DebuggerSP CreateInstance (lldb::LogOutputCallback log_callback = NULL, void *baton = NULL); @@ -352,6 +360,13 @@ public: void CancelForwardEvents (const lldb::ListenerSP &listener_sp); + + bool + IsHandlingEvents () const + { + return IS_VALID_LLDB_HOST_THREAD(m_event_handler_thread); + } + protected: friend class CommandInterpreter; @@ -415,12 +430,11 @@ protected: lldb::StreamSP m_log_callback_stream_sp; ConstString m_instance_name; static LoadPluginCallbackType g_load_plugin_callback; - typedef std::vector<lldb::DynamicLibrarySP> LoadedPluginsList; + typedef std::vector<llvm::sys::DynamicLibrary> LoadedPluginsList; LoadedPluginsList m_loaded_plugins; lldb::thread_t m_event_handler_thread; lldb::thread_t m_io_handler_thread; lldb::ListenerSP m_forward_listener_sp; - bool m_event_handler_thread_alive; void InstanceInitialize (); |