diff options
Diffstat (limited to 'source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.h')
| -rw-r--r-- | source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.h | 14 | 
1 files changed, 12 insertions, 2 deletions
diff --git a/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.h b/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.h index 1eda0b052bb7..29f3fdebcfb0 100644 --- a/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.h +++ b/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.h @@ -19,6 +19,7 @@  #include "lldb/Core/Communication.h"  #include "lldb/Host/Mutex.h"  #include "lldb/Host/common/NativeProcessProtocol.h" +#include "lldb/Host/MainLoop.h"  // Project includes  #include "GDBRemoteCommunicationServerCommon.h" @@ -26,6 +27,7 @@  class StringExtractorGDBRemote;  namespace lldb_private { +  namespace process_gdb_remote {  class ProcessGDBRemote; @@ -38,7 +40,7 @@ public:      //------------------------------------------------------------------      // Constructors and Destructors      //------------------------------------------------------------------ -    GDBRemoteCommunicationServerLLGS(const lldb::PlatformSP& platform_sp); +    GDBRemoteCommunicationServerLLGS(const lldb::PlatformSP& platform_sp, MainLoop &mainloop);      virtual      ~GDBRemoteCommunicationServerLLGS(); @@ -111,9 +113,13 @@ public:      void      DidExec (NativeProcessProtocol *process) override; +    Error +    InitializeConnection (std::unique_ptr<Connection> &&connection); +  protected:      lldb::PlatformSP m_platform_sp; -    lldb::thread_t m_async_thread; +    MainLoop &m_mainloop; +    MainLoop::ReadHandleUP m_read_handle_up;      lldb::tid_t m_current_tid;      lldb::tid_t m_continue_tid;      Mutex m_debugged_process_mutex; @@ -124,6 +130,7 @@ protected:      Mutex m_saved_registers_mutex;      std::unordered_map<uint32_t, lldb::DataBufferSP> m_saved_registers_map;      uint32_t m_next_saved_registers_id; +    bool m_handshake_completed : 1;      PacketResult      SendONotification (const char *buffer, uint32_t len); @@ -295,6 +302,9 @@ private:      void      RegisterPacketHandlers (); +    void +    DataAvailableCallback (); +      //------------------------------------------------------------------      // For GDBRemoteCommunicationServerLLGS only      //------------------------------------------------------------------  | 
