Chris Lattner | 30fdc8d | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 1 | //===-- GDBRemoteCommunication.h --------------------------------*- C++ -*-===// |
| 2 | // |
| 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
| 5 | // This file is distributed under the University of Illinois Open Source |
| 6 | // License. See LICENSE.TXT for details. |
| 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
| 9 | |
| 10 | #ifndef liblldb_GDBRemoteCommunication_h_ |
| 11 | #define liblldb_GDBRemoteCommunication_h_ |
| 12 | |
| 13 | // C Includes |
| 14 | // C++ Includes |
| 15 | #include <list> |
| 16 | #include <string> |
Ewan Crawford | fab40d3 | 2015-06-16 15:50:18 +0000 | [diff] [blame^] | 17 | #include <queue> |
Chris Lattner | 30fdc8d | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 18 | |
| 19 | // Other libraries and framework includes |
| 20 | // Project includes |
Greg Clayton | c1422c1 | 2012-04-09 22:46:21 +0000 | [diff] [blame] | 21 | #include "lldb/lldb-public.h" |
Chris Lattner | 30fdc8d | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 22 | #include "lldb/Core/Communication.h" |
Chris Lattner | 30fdc8d | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 23 | #include "lldb/Core/Listener.h" |
Zachary Turner | 39de311 | 2014-09-09 20:54:56 +0000 | [diff] [blame] | 24 | #include "lldb/Host/HostThread.h" |
Chris Lattner | 30fdc8d | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 25 | #include "lldb/Host/Mutex.h" |
| 26 | #include "lldb/Host/Predicate.h" |
Peter Collingbourne | ba23ca0 | 2011-06-18 23:52:14 +0000 | [diff] [blame] | 27 | #include "lldb/Host/TimeValue.h" |
Chris Lattner | 30fdc8d | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 28 | |
Greg Clayton | c982c76 | 2010-07-09 20:39:50 +0000 | [diff] [blame] | 29 | #include "Utility/StringExtractorGDBRemote.h" |
Chris Lattner | 30fdc8d | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 30 | |
Tamas Berghammer | db264a6 | 2015-03-31 09:52:22 +0000 | [diff] [blame] | 31 | namespace lldb_private { |
| 32 | namespace process_gdb_remote { |
| 33 | |
Chaoren Lin | 18fe640 | 2015-02-03 01:51:47 +0000 | [diff] [blame] | 34 | typedef enum |
| 35 | { |
| 36 | eStoppointInvalid = -1, |
| 37 | eBreakpointSoftware = 0, |
| 38 | eBreakpointHardware, |
| 39 | eWatchpointWrite, |
| 40 | eWatchpointRead, |
| 41 | eWatchpointReadWrite |
| 42 | } GDBStoppointType; |
| 43 | |
Chris Lattner | 30fdc8d | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 44 | class ProcessGDBRemote; |
| 45 | |
Tamas Berghammer | db264a6 | 2015-03-31 09:52:22 +0000 | [diff] [blame] | 46 | class GDBRemoteCommunication : public Communication |
Chris Lattner | 30fdc8d | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 47 | { |
| 48 | public: |
Greg Clayton | e521966 | 2010-12-03 06:02:24 +0000 | [diff] [blame] | 49 | enum |
| 50 | { |
Ewan Crawford | fab40d3 | 2015-06-16 15:50:18 +0000 | [diff] [blame^] | 51 | eBroadcastBitRunPacketSent = kLoUserBroadcastBit, |
| 52 | eBroadcastBitGdbReadThreadGotNotify = kLoUserBroadcastBit << 1 // Sent when we received a notify packet. |
Greg Clayton | e521966 | 2010-12-03 06:02:24 +0000 | [diff] [blame] | 53 | }; |
Ewan Crawford | 9aa2da00 | 2015-05-27 14:12:34 +0000 | [diff] [blame] | 54 | |
| 55 | enum class PacketType |
| 56 | { |
| 57 | Invalid = 0, |
| 58 | Standard, |
| 59 | Notify |
| 60 | }; |
| 61 | |
Greg Clayton | 3dedae1 | 2013-12-06 21:45:27 +0000 | [diff] [blame] | 62 | enum class PacketResult |
| 63 | { |
| 64 | Success = 0, // Success |
| 65 | ErrorSendFailed, // Error sending the packet |
| 66 | ErrorSendAck, // Didn't get an ack back after sending a packet |
| 67 | ErrorReplyFailed, // Error getting the reply |
| 68 | ErrorReplyTimeout, // Timed out waiting for reply |
| 69 | ErrorReplyInvalid, // Got a reply but it wasn't valid for the packet that was sent |
| 70 | ErrorReplyAck, // Sending reply ack failed |
Steve Pucci | 5ae54ae | 2014-01-25 05:46:51 +0000 | [diff] [blame] | 71 | ErrorDisconnected, // We were disconnected |
| 72 | ErrorNoSequenceLock // We couldn't get the sequence lock for a multi-packet request |
Greg Clayton | 3dedae1 | 2013-12-06 21:45:27 +0000 | [diff] [blame] | 73 | }; |
Tamas Berghammer | 912800c | 2015-02-24 10:23:39 +0000 | [diff] [blame] | 74 | |
| 75 | // Class to change the timeout for a given scope and restore it to the original value when the |
| 76 | // created ScopedTimeout object got out of scope |
| 77 | class ScopedTimeout |
| 78 | { |
| 79 | public: |
| 80 | ScopedTimeout (GDBRemoteCommunication& gdb_comm, uint32_t timeout); |
| 81 | ~ScopedTimeout (); |
| 82 | |
| 83 | private: |
| 84 | GDBRemoteCommunication& m_gdb_comm; |
| 85 | uint32_t m_saved_timeout; |
| 86 | }; |
| 87 | |
Chris Lattner | 30fdc8d | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 88 | //------------------------------------------------------------------ |
| 89 | // Constructors and Destructors |
| 90 | //------------------------------------------------------------------ |
Greg Clayton | 8b82f08 | 2011-04-12 05:54:46 +0000 | [diff] [blame] | 91 | GDBRemoteCommunication(const char *comm_name, |
Tamas Berghammer | e13c273 | 2015-02-11 10:29:30 +0000 | [diff] [blame] | 92 | const char *listener_name); |
Chris Lattner | 30fdc8d | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 93 | |
| 94 | virtual |
| 95 | ~GDBRemoteCommunication(); |
| 96 | |
Greg Clayton | 3dedae1 | 2013-12-06 21:45:27 +0000 | [diff] [blame] | 97 | PacketResult |
Greg Clayton | c574ede | 2011-03-10 02:26:48 +0000 | [diff] [blame] | 98 | GetAck (); |
Chris Lattner | 30fdc8d | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 99 | |
| 100 | size_t |
Greg Clayton | 6ed9594 | 2011-01-22 07:12:45 +0000 | [diff] [blame] | 101 | SendAck (); |
| 102 | |
| 103 | size_t |
| 104 | SendNack (); |
| 105 | |
Chris Lattner | 30fdc8d | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 106 | char |
| 107 | CalculcateChecksum (const char *payload, |
| 108 | size_t payload_length); |
| 109 | |
Chris Lattner | 30fdc8d | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 110 | bool |
Tamas Berghammer | db264a6 | 2015-03-31 09:52:22 +0000 | [diff] [blame] | 111 | GetSequenceMutex (Mutex::Locker& locker, const char *failure_message = NULL); |
Chris Lattner | 30fdc8d | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 112 | |
Ewan Crawford | 9aa2da00 | 2015-05-27 14:12:34 +0000 | [diff] [blame] | 113 | PacketType |
Greg Clayton | 73bf5db | 2011-06-17 01:22:15 +0000 | [diff] [blame] | 114 | CheckForPacket (const uint8_t *src, |
| 115 | size_t src_len, |
| 116 | StringExtractorGDBRemote &packet); |
Chris Lattner | 30fdc8d | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 117 | bool |
| 118 | IsRunning() const |
| 119 | { |
Greg Clayton | 4dc7228 | 2011-01-20 07:53:45 +0000 | [diff] [blame] | 120 | return m_public_is_running.GetValue(); |
Chris Lattner | 30fdc8d | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 121 | } |
Greg Clayton | 6779606a | 2011-01-22 23:43:18 +0000 | [diff] [blame] | 122 | |
Greg Clayton | 1cb6496 | 2011-03-24 04:28:38 +0000 | [diff] [blame] | 123 | bool |
| 124 | GetSendAcks () |
| 125 | { |
| 126 | return m_send_acks; |
| 127 | } |
| 128 | |
Greg Clayton | 576d883 | 2011-03-22 04:00:09 +0000 | [diff] [blame] | 129 | //------------------------------------------------------------------ |
| 130 | // Client and server must implement these pure virtual functions |
| 131 | //------------------------------------------------------------------ |
| 132 | virtual bool |
| 133 | GetThreadSuffixSupported () = 0; |
Chris Lattner | 30fdc8d | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 134 | |
Greg Clayton | 576d883 | 2011-03-22 04:00:09 +0000 | [diff] [blame] | 135 | //------------------------------------------------------------------ |
| 136 | // Set the global packet timeout. |
| 137 | // |
| 138 | // For clients, this is the timeout that gets used when sending |
| 139 | // packets and waiting for responses. For servers, this might not |
| 140 | // get used, and if it doesn't this should be moved to the |
| 141 | // GDBRemoteCommunicationClient. |
| 142 | //------------------------------------------------------------------ |
Greg Clayton | c574ede | 2011-03-10 02:26:48 +0000 | [diff] [blame] | 143 | uint32_t |
| 144 | SetPacketTimeout (uint32_t packet_timeout) |
| 145 | { |
| 146 | const uint32_t old_packet_timeout = m_packet_timeout; |
| 147 | m_packet_timeout = packet_timeout; |
| 148 | return old_packet_timeout; |
| 149 | } |
Greg Clayton | 71fc2a3 | 2011-02-12 06:28:37 +0000 | [diff] [blame] | 150 | |
Greg Clayton | 73bf5db | 2011-06-17 01:22:15 +0000 | [diff] [blame] | 151 | uint32_t |
| 152 | GetPacketTimeoutInMicroSeconds () const |
| 153 | { |
Tamas Berghammer | db264a6 | 2015-03-31 09:52:22 +0000 | [diff] [blame] | 154 | return m_packet_timeout * TimeValue::MicroSecPerSec; |
Greg Clayton | 73bf5db | 2011-06-17 01:22:15 +0000 | [diff] [blame] | 155 | } |
Greg Clayton | 8b82f08 | 2011-04-12 05:54:46 +0000 | [diff] [blame] | 156 | //------------------------------------------------------------------ |
| 157 | // Start a debugserver instance on the current host using the |
| 158 | // supplied connection URL. |
| 159 | //------------------------------------------------------------------ |
Tamas Berghammer | db264a6 | 2015-03-31 09:52:22 +0000 | [diff] [blame] | 160 | Error |
Greg Clayton | fda4fab | 2014-01-10 22:24:11 +0000 | [diff] [blame] | 161 | StartDebugserverProcess (const char *hostname, |
| 162 | uint16_t in_port, // If set to zero, then out_port will contain the bound port on exit |
Tamas Berghammer | db264a6 | 2015-03-31 09:52:22 +0000 | [diff] [blame] | 163 | ProcessLaunchInfo &launch_info, |
Greg Clayton | fda4fab | 2014-01-10 22:24:11 +0000 | [diff] [blame] | 164 | uint16_t &out_port); |
Greg Clayton | 8b82f08 | 2011-04-12 05:54:46 +0000 | [diff] [blame] | 165 | |
Greg Clayton | c1422c1 | 2012-04-09 22:46:21 +0000 | [diff] [blame] | 166 | void |
Tamas Berghammer | db264a6 | 2015-03-31 09:52:22 +0000 | [diff] [blame] | 167 | DumpHistory(Stream &strm); |
Greg Clayton | 73bf5db | 2011-06-17 01:22:15 +0000 | [diff] [blame] | 168 | |
Chris Lattner | 30fdc8d | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 169 | protected: |
Greg Clayton | c1422c1 | 2012-04-09 22:46:21 +0000 | [diff] [blame] | 170 | |
| 171 | class History |
| 172 | { |
| 173 | public: |
| 174 | enum PacketType |
| 175 | { |
| 176 | ePacketTypeInvalid = 0, |
| 177 | ePacketTypeSend, |
| 178 | ePacketTypeRecv |
| 179 | }; |
| 180 | |
| 181 | struct Entry |
| 182 | { |
| 183 | Entry() : |
| 184 | packet(), |
| 185 | type (ePacketTypeInvalid), |
| 186 | bytes_transmitted (0), |
Greg Clayton | d451c1a | 2012-04-13 21:24:18 +0000 | [diff] [blame] | 187 | packet_idx (0), |
| 188 | tid (LLDB_INVALID_THREAD_ID) |
Greg Clayton | c1422c1 | 2012-04-09 22:46:21 +0000 | [diff] [blame] | 189 | { |
| 190 | } |
| 191 | |
| 192 | void |
| 193 | Clear () |
| 194 | { |
| 195 | packet.clear(); |
| 196 | type = ePacketTypeInvalid; |
| 197 | bytes_transmitted = 0; |
| 198 | packet_idx = 0; |
Greg Clayton | d451c1a | 2012-04-13 21:24:18 +0000 | [diff] [blame] | 199 | tid = LLDB_INVALID_THREAD_ID; |
Greg Clayton | c1422c1 | 2012-04-09 22:46:21 +0000 | [diff] [blame] | 200 | } |
| 201 | std::string packet; |
| 202 | PacketType type; |
| 203 | uint32_t bytes_transmitted; |
| 204 | uint32_t packet_idx; |
Greg Clayton | d451c1a | 2012-04-13 21:24:18 +0000 | [diff] [blame] | 205 | lldb::tid_t tid; |
Greg Clayton | c1422c1 | 2012-04-09 22:46:21 +0000 | [diff] [blame] | 206 | }; |
| 207 | |
| 208 | History (uint32_t size); |
| 209 | |
| 210 | ~History (); |
| 211 | |
| 212 | // For single char packets for ack, nack and /x03 |
| 213 | void |
| 214 | AddPacket (char packet_char, |
| 215 | PacketType type, |
Greg Clayton | d451c1a | 2012-04-13 21:24:18 +0000 | [diff] [blame] | 216 | uint32_t bytes_transmitted); |
Greg Clayton | c1422c1 | 2012-04-09 22:46:21 +0000 | [diff] [blame] | 217 | void |
| 218 | AddPacket (const std::string &src, |
| 219 | uint32_t src_len, |
| 220 | PacketType type, |
Greg Clayton | d451c1a | 2012-04-13 21:24:18 +0000 | [diff] [blame] | 221 | uint32_t bytes_transmitted); |
Greg Clayton | c1422c1 | 2012-04-09 22:46:21 +0000 | [diff] [blame] | 222 | |
| 223 | void |
Tamas Berghammer | db264a6 | 2015-03-31 09:52:22 +0000 | [diff] [blame] | 224 | Dump (Stream &strm) const; |
Greg Clayton | c1422c1 | 2012-04-09 22:46:21 +0000 | [diff] [blame] | 225 | |
| 226 | void |
Tamas Berghammer | db264a6 | 2015-03-31 09:52:22 +0000 | [diff] [blame] | 227 | Dump (Log *log) const; |
Greg Clayton | c1422c1 | 2012-04-09 22:46:21 +0000 | [diff] [blame] | 228 | |
| 229 | bool |
| 230 | DidDumpToLog () const |
| 231 | { |
| 232 | return m_dumped_to_log; |
| 233 | } |
| 234 | |
| 235 | protected: |
| 236 | uint32_t |
| 237 | GetFirstSavedPacketIndex () const |
| 238 | { |
| 239 | if (m_total_packet_count < m_packets.size()) |
| 240 | return 0; |
| 241 | else |
| 242 | return m_curr_idx + 1; |
| 243 | } |
| 244 | |
| 245 | uint32_t |
| 246 | GetNumPacketsInHistory () const |
| 247 | { |
| 248 | if (m_total_packet_count < m_packets.size()) |
| 249 | return m_total_packet_count; |
| 250 | else |
| 251 | return (uint32_t)m_packets.size(); |
| 252 | } |
| 253 | |
| 254 | uint32_t |
| 255 | GetNextIndex() |
| 256 | { |
| 257 | ++m_total_packet_count; |
| 258 | const uint32_t idx = m_curr_idx; |
| 259 | m_curr_idx = NormalizeIndex(idx + 1); |
| 260 | return idx; |
| 261 | } |
| 262 | |
| 263 | uint32_t |
| 264 | NormalizeIndex (uint32_t i) const |
| 265 | { |
| 266 | return i % m_packets.size(); |
| 267 | } |
| 268 | |
| 269 | |
| 270 | std::vector<Entry> m_packets; |
| 271 | uint32_t m_curr_idx; |
| 272 | uint32_t m_total_packet_count; |
| 273 | mutable bool m_dumped_to_log; |
| 274 | }; |
Chris Lattner | 30fdc8d | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 275 | |
Greg Clayton | 3dedae1 | 2013-12-06 21:45:27 +0000 | [diff] [blame] | 276 | PacketResult |
Greg Clayton | 37a0a24 | 2012-04-11 00:24:49 +0000 | [diff] [blame] | 277 | SendPacket (const char *payload, |
| 278 | size_t payload_length); |
| 279 | |
Greg Clayton | 3dedae1 | 2013-12-06 21:45:27 +0000 | [diff] [blame] | 280 | PacketResult |
Chris Lattner | 30fdc8d | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 281 | SendPacketNoLock (const char *payload, |
| 282 | size_t payload_length); |
| 283 | |
Greg Clayton | 3dedae1 | 2013-12-06 21:45:27 +0000 | [diff] [blame] | 284 | PacketResult |
Ewan Crawford | fab40d3 | 2015-06-16 15:50:18 +0000 | [diff] [blame^] | 285 | ReadPacket (StringExtractorGDBRemote &response, uint32_t timeout_usec, bool sync_on_timeout); |
| 286 | |
| 287 | // Pop a packet from the queue in a thread safe manner |
| 288 | PacketResult |
| 289 | PopPacketFromQueue (StringExtractorGDBRemote &response, uint32_t timeout_usec); |
| 290 | |
| 291 | PacketResult |
Greg Clayton | 73bf5db | 2011-06-17 01:22:15 +0000 | [diff] [blame] | 292 | WaitForPacketWithTimeoutMicroSecondsNoLock (StringExtractorGDBRemote &response, |
Greg Clayton | b30c50c | 2015-05-29 00:01:55 +0000 | [diff] [blame] | 293 | uint32_t timeout_usec, |
| 294 | bool sync_on_timeout); |
Greg Clayton | 6779606a | 2011-01-22 23:43:18 +0000 | [diff] [blame] | 295 | |
| 296 | bool |
Tamas Berghammer | db264a6 | 2015-03-31 09:52:22 +0000 | [diff] [blame] | 297 | WaitForNotRunningPrivate (const TimeValue *timeout_ptr); |
Chris Lattner | 30fdc8d | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 298 | |
| 299 | //------------------------------------------------------------------ |
| 300 | // Classes that inherit from GDBRemoteCommunication can see and modify these |
| 301 | //------------------------------------------------------------------ |
Greg Clayton | c574ede | 2011-03-10 02:26:48 +0000 | [diff] [blame] | 302 | uint32_t m_packet_timeout; |
Greg Clayton | b30c50c | 2015-05-29 00:01:55 +0000 | [diff] [blame] | 303 | uint32_t m_echo_number; |
| 304 | LazyBool m_supports_qEcho; |
Greg Clayton | b09c538 | 2013-12-13 17:20:18 +0000 | [diff] [blame] | 305 | #ifdef ENABLE_MUTEX_ERROR_CHECKING |
Tamas Berghammer | db264a6 | 2015-03-31 09:52:22 +0000 | [diff] [blame] | 306 | TrackingMutex m_sequence_mutex; |
Jim Ingham | 4ceb928 | 2012-06-08 22:50:40 +0000 | [diff] [blame] | 307 | #else |
Tamas Berghammer | db264a6 | 2015-03-31 09:52:22 +0000 | [diff] [blame] | 308 | Mutex m_sequence_mutex; // Restrict access to sending/receiving packets to a single thread at a time |
Jim Ingham | 4ceb928 | 2012-06-08 22:50:40 +0000 | [diff] [blame] | 309 | #endif |
Tamas Berghammer | db264a6 | 2015-03-31 09:52:22 +0000 | [diff] [blame] | 310 | Predicate<bool> m_public_is_running; |
| 311 | Predicate<bool> m_private_is_running; |
Greg Clayton | c1422c1 | 2012-04-09 22:46:21 +0000 | [diff] [blame] | 312 | History m_history; |
Greg Clayton | 1cb6496 | 2011-03-24 04:28:38 +0000 | [diff] [blame] | 313 | bool m_send_acks; |
Greg Clayton | 8b82f08 | 2011-04-12 05:54:46 +0000 | [diff] [blame] | 314 | bool m_is_platform; // Set to true if this class represents a platform, |
| 315 | // false if this class represents a debug session for |
| 316 | // a single process |
Greg Clayton | 1cb6496 | 2011-03-24 04:28:38 +0000 | [diff] [blame] | 317 | |
| 318 | |
Tamas Berghammer | db264a6 | 2015-03-31 09:52:22 +0000 | [diff] [blame] | 319 | Error |
| 320 | StartListenThread (const char *hostname = "127.0.0.1", uint16_t port = 0); |
Chris Lattner | 30fdc8d | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 321 | |
Greg Clayton | 00fe87b | 2013-12-05 22:58:22 +0000 | [diff] [blame] | 322 | bool |
| 323 | JoinListenThread (); |
| 324 | |
| 325 | static lldb::thread_result_t |
| 326 | ListenThread (lldb::thread_arg_t arg); |
Greg Clayton | 8b82f08 | 2011-04-12 05:54:46 +0000 | [diff] [blame] | 327 | |
Ewan Crawford | fab40d3 | 2015-06-16 15:50:18 +0000 | [diff] [blame^] | 328 | // GDB-Remote read thread |
| 329 | // . this thread constantly tries to read from the communication |
| 330 | // class and stores all packets received in a queue. The usual |
| 331 | // threads read requests simply pop packets off the queue in the |
| 332 | // usual order. |
| 333 | // This setup allows us to intercept and handle async packets, such |
| 334 | // as the notify packet. |
| 335 | |
| 336 | // This method is defined as part of communication.h |
| 337 | // when the read thread gets any bytes it will pass them on to this function |
| 338 | virtual void AppendBytesToCache (const uint8_t * bytes, size_t len, bool broadcast, lldb::ConnectionStatus status); |
| 339 | |
Chris Lattner | 30fdc8d | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 340 | private: |
Ewan Crawford | fab40d3 | 2015-06-16 15:50:18 +0000 | [diff] [blame^] | 341 | |
| 342 | std::queue<StringExtractorGDBRemote> m_packet_queue; // The packet queue |
| 343 | lldb_private::Mutex m_packet_queue_mutex; // Mutex for accessing queue |
| 344 | Condition m_condition_queue_not_empty; // Condition variable to wait for packets |
| 345 | |
Tamas Berghammer | db264a6 | 2015-03-31 09:52:22 +0000 | [diff] [blame] | 346 | HostThread m_listen_thread; |
Greg Clayton | 00fe87b | 2013-12-05 22:58:22 +0000 | [diff] [blame] | 347 | std::string m_listen_url; |
Greg Clayton | 00fe87b | 2013-12-05 22:58:22 +0000 | [diff] [blame] | 348 | |
Chris Lattner | 30fdc8d | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 349 | //------------------------------------------------------------------ |
| 350 | // For GDBRemoteCommunication only |
| 351 | //------------------------------------------------------------------ |
| 352 | DISALLOW_COPY_AND_ASSIGN (GDBRemoteCommunication); |
| 353 | }; |
| 354 | |
Tamas Berghammer | db264a6 | 2015-03-31 09:52:22 +0000 | [diff] [blame] | 355 | } // namespace process_gdb_remote |
| 356 | } // namespace lldb_private |
| 357 | |
Chris Lattner | 30fdc8d | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 358 | #endif // liblldb_GDBRemoteCommunication_h_ |