diff options
| author | Ed Maste <emaste@FreeBSD.org> | 2015-02-09 01:44:09 +0000 | 
|---|---|---|
| committer | Ed Maste <emaste@FreeBSD.org> | 2015-02-09 01:44:09 +0000 | 
| commit | 12bd4897ff0678fa663e09d78ebc22dd255ceb86 (patch) | |
| tree | a8f4b3abea3e6937e60728991c736e6e3d322fc1 /source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.h | |
| parent | 205afe679855a4ce8149cdaa94d3f0868ce796dc (diff) | |
Notes
Diffstat (limited to 'source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.h')
| -rw-r--r-- | source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.h | 32 | 
1 files changed, 20 insertions, 12 deletions
diff --git a/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.h b/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.h index fddcd6cd1426..d90614bce88b 100644 --- a/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.h +++ b/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.h @@ -21,15 +21,6 @@  #include "GDBRemoteCommunication.h" -typedef enum  -{ -    eBreakpointSoftware = 0, -    eBreakpointHardware, -    eWatchpointWrite, -    eWatchpointRead, -    eWatchpointReadWrite -} GDBStoppointType; -  class GDBRemoteCommunicationClient : public GDBRemoteCommunication  {  public: @@ -109,7 +100,7 @@ public:                     bool &timed_out);      lldb::pid_t -    GetCurrentProcessID (); +    GetCurrentProcessID (bool allow_lazy = true);      bool      GetLaunchSuccess (std::string &error_str); @@ -184,6 +175,23 @@ public:      //------------------------------------------------------------------ +    /// Sends a GDB remote protocol 'I' packet that delivers stdin +    /// data to the remote process. +    /// +    /// @param[in] data +    ///     A pointer to stdin data. +    /// +    /// @param[in] data_len +    ///     The number of bytes available at \a data. +    /// +    /// @return +    ///     Zero if the attach was successful, or an error indicating +    ///     an error code. +    //------------------------------------------------------------------ +    int +    SendStdinNotification(const char* data, size_t data_len); + +    //------------------------------------------------------------------      /// Sets the path to use for stdin/out/err for a process      /// that will be launched with the 'A' packet.      /// @@ -375,8 +383,8 @@ public:          case eWatchpointWrite:      return m_supports_z2;          case eWatchpointRead:       return m_supports_z3;          case eWatchpointReadWrite:  return m_supports_z4; +        case eStoppointInvalid:     return false;          } -        return false;      }      uint8_t      SendGDBStoppointTypePacket (GDBStoppointType type,   // Type of breakpoint or watchpoint @@ -534,7 +542,7 @@ protected:                                          StringExtractorGDBRemote &response);      bool -    GetCurrentProcessInfo (); +    GetCurrentProcessInfo (bool allow_lazy_pid = true);      bool      GetGDBServerVersion();  | 
