Greg Clayton | 576d883 | 2011-03-22 04:00:09 +0000 | [diff] [blame] | 1 | //===-- GDBRemoteCommunicationServer.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_GDBRemoteCommunicationServer_h_ |
| 11 | #define liblldb_GDBRemoteCommunicationServer_h_ |
| 12 | |
| 13 | // C Includes |
| 14 | // C++ Includes |
Daniel Malea | e0f8f57 | 2013-08-26 23:57:52 +0000 | [diff] [blame] | 15 | #include <vector> |
| 16 | #include <set> |
Greg Clayton | 576d883 | 2011-03-22 04:00:09 +0000 | [diff] [blame] | 17 | // Other libraries and framework includes |
| 18 | // Project includes |
Daniel Malea | e0f8f57 | 2013-08-26 23:57:52 +0000 | [diff] [blame] | 19 | #include "lldb/Host/Mutex.h" |
Greg Clayton | 32e0a75 | 2011-03-30 18:16:51 +0000 | [diff] [blame] | 20 | #include "lldb/Target/Process.h" |
Greg Clayton | 576d883 | 2011-03-22 04:00:09 +0000 | [diff] [blame] | 21 | #include "GDBRemoteCommunication.h" |
| 22 | |
| 23 | class ProcessGDBRemote; |
Greg Clayton | 32e0a75 | 2011-03-30 18:16:51 +0000 | [diff] [blame] | 24 | class StringExtractorGDBRemote; |
Greg Clayton | 576d883 | 2011-03-22 04:00:09 +0000 | [diff] [blame] | 25 | |
| 26 | class GDBRemoteCommunicationServer : public GDBRemoteCommunication |
| 27 | { |
| 28 | public: |
Greg Clayton | 29b8fc4 | 2013-11-21 01:44:58 +0000 | [diff] [blame] | 29 | typedef std::map<uint16_t, lldb::pid_t> PortMap; |
| 30 | |
Greg Clayton | 576d883 | 2011-03-22 04:00:09 +0000 | [diff] [blame] | 31 | enum |
| 32 | { |
| 33 | eBroadcastBitRunPacketSent = kLoUserBroadcastBit |
| 34 | }; |
| 35 | //------------------------------------------------------------------ |
| 36 | // Constructors and Destructors |
| 37 | //------------------------------------------------------------------ |
Greg Clayton | 8b82f08 | 2011-04-12 05:54:46 +0000 | [diff] [blame] | 38 | GDBRemoteCommunicationServer(bool is_platform); |
Greg Clayton | 576d883 | 2011-03-22 04:00:09 +0000 | [diff] [blame] | 39 | |
| 40 | virtual |
| 41 | ~GDBRemoteCommunicationServer(); |
| 42 | |
| 43 | bool |
Greg Clayton | 73bf5db | 2011-06-17 01:22:15 +0000 | [diff] [blame] | 44 | GetPacketAndSendResponse (uint32_t timeout_usec, |
Greg Clayton | 1cb6496 | 2011-03-24 04:28:38 +0000 | [diff] [blame] | 45 | lldb_private::Error &error, |
Greg Clayton | d314e81 | 2011-03-23 00:09:55 +0000 | [diff] [blame] | 46 | bool &interrupt, |
| 47 | bool &quit); |
Greg Clayton | 576d883 | 2011-03-22 04:00:09 +0000 | [diff] [blame] | 48 | |
| 49 | virtual bool |
| 50 | GetThreadSuffixSupported () |
| 51 | { |
| 52 | return true; |
| 53 | } |
| 54 | |
Greg Clayton | 1cb6496 | 2011-03-24 04:28:38 +0000 | [diff] [blame] | 55 | // After connecting, do a little handshake with the client to make sure |
| 56 | // we are at least communicating |
| 57 | bool |
| 58 | HandshakeWithClient (lldb_private::Error *error_ptr); |
Greg Clayton | 576d883 | 2011-03-22 04:00:09 +0000 | [diff] [blame] | 59 | |
Greg Clayton | 8b82f08 | 2011-04-12 05:54:46 +0000 | [diff] [blame] | 60 | // Set both ports to zero to let the platform automatically bind to |
| 61 | // a port chosen by the OS. |
| 62 | void |
Greg Clayton | 29b8fc4 | 2013-11-21 01:44:58 +0000 | [diff] [blame] | 63 | SetPortMap (PortMap &&port_map) |
Greg Clayton | 8b82f08 | 2011-04-12 05:54:46 +0000 | [diff] [blame] | 64 | { |
Greg Clayton | 29b8fc4 | 2013-11-21 01:44:58 +0000 | [diff] [blame] | 65 | m_port_map = port_map; |
Daniel Malea | e0f8f57 | 2013-08-26 23:57:52 +0000 | [diff] [blame] | 66 | } |
| 67 | |
Greg Clayton | 29b8fc4 | 2013-11-21 01:44:58 +0000 | [diff] [blame] | 68 | //---------------------------------------------------------------------- |
| 69 | // If we are using a port map where we can only use certain ports, |
| 70 | // get the next available port. |
| 71 | // |
| 72 | // If we are using a port map and we are out of ports, return UINT16_MAX |
| 73 | // |
| 74 | // If we aren't using a port map, return 0 to indicate we should bind to |
| 75 | // port 0 and then figure out which port we used. |
| 76 | //---------------------------------------------------------------------- |
Daniel Malea | e0f8f57 | 2013-08-26 23:57:52 +0000 | [diff] [blame] | 77 | uint16_t |
Greg Clayton | 29b8fc4 | 2013-11-21 01:44:58 +0000 | [diff] [blame] | 78 | GetNextAvailablePort () |
Daniel Malea | e0f8f57 | 2013-08-26 23:57:52 +0000 | [diff] [blame] | 79 | { |
Greg Clayton | 29b8fc4 | 2013-11-21 01:44:58 +0000 | [diff] [blame] | 80 | if (m_port_map.empty()) |
| 81 | return 0; // Bind to port zero and get a port, we didn't have any limitations |
| 82 | |
| 83 | for (auto &pair : m_port_map) |
| 84 | { |
| 85 | if (pair.second == LLDB_INVALID_PROCESS_ID) |
| 86 | { |
| 87 | pair.second = ~(lldb::pid_t)LLDB_INVALID_PROCESS_ID; |
| 88 | return pair.first; |
| 89 | } |
| 90 | } |
| 91 | return UINT16_MAX; |
| 92 | } |
| 93 | |
| 94 | bool |
| 95 | AssociatePortWithProcess (uint16_t port, lldb::pid_t pid) |
| 96 | { |
| 97 | PortMap::iterator pos = m_port_map.find(port); |
| 98 | if (pos != m_port_map.end()) |
| 99 | { |
| 100 | pos->second = pid; |
| 101 | return true; |
| 102 | } |
| 103 | return false; |
| 104 | } |
| 105 | |
| 106 | bool |
| 107 | FreePort (uint16_t port) |
| 108 | { |
| 109 | PortMap::iterator pos = m_port_map.find(port); |
| 110 | if (pos != m_port_map.end()) |
| 111 | { |
| 112 | pos->second = LLDB_INVALID_PROCESS_ID; |
| 113 | return true; |
| 114 | } |
| 115 | return false; |
| 116 | } |
| 117 | |
| 118 | bool |
| 119 | FreePortForProcess (lldb::pid_t pid) |
| 120 | { |
| 121 | if (!m_port_map.empty()) |
| 122 | { |
| 123 | for (auto &pair : m_port_map) |
| 124 | { |
| 125 | if (pair.second == pid) |
| 126 | { |
| 127 | pair.second = LLDB_INVALID_PROCESS_ID; |
| 128 | return true; |
| 129 | } |
| 130 | } |
| 131 | } |
| 132 | return false; |
Greg Clayton | 8b82f08 | 2011-04-12 05:54:46 +0000 | [diff] [blame] | 133 | } |
| 134 | |
Greg Clayton | 2b98c56 | 2013-11-22 18:53:12 +0000 | [diff] [blame] | 135 | void |
| 136 | SetPortOffset (uint16_t port_offset) |
| 137 | { |
| 138 | m_port_offset = port_offset; |
| 139 | } |
| 140 | |
Todd Fiala | 403edc5 | 2014-01-23 22:05:44 +0000 | [diff] [blame] | 141 | //------------------------------------------------------------------ |
| 142 | /// Launch a process. |
| 143 | /// |
| 144 | /// This method supports running an lldb-gdbserver or similar |
| 145 | /// server in a situation where the startup code has been provided |
| 146 | /// with all the information for a child process to be launched. |
| 147 | /// |
| 148 | /// @param[in] args |
| 149 | /// The command line to launch. |
| 150 | /// |
| 151 | /// @param[in] argc |
| 152 | /// The number of elements in the args array of cstring pointers. |
| 153 | /// |
| 154 | /// @param[in] launch_flags |
| 155 | /// The launch flags to use when launching this process. |
| 156 | /// |
| 157 | /// @return |
| 158 | /// An Error object indicating the success or failure of the |
| 159 | /// launch. |
| 160 | //------------------------------------------------------------------ |
| 161 | lldb_private::Error |
| 162 | LaunchProcess (const char *const args[], int argc, unsigned int launch_flags); |
| 163 | |
Greg Clayton | 576d883 | 2011-03-22 04:00:09 +0000 | [diff] [blame] | 164 | protected: |
| 165 | lldb::thread_t m_async_thread; |
Greg Clayton | 8b82f08 | 2011-04-12 05:54:46 +0000 | [diff] [blame] | 166 | lldb_private::ProcessLaunchInfo m_process_launch_info; |
| 167 | lldb_private::Error m_process_launch_error; |
Daniel Malea | e0f8f57 | 2013-08-26 23:57:52 +0000 | [diff] [blame] | 168 | std::set<lldb::pid_t> m_spawned_pids; |
| 169 | lldb_private::Mutex m_spawned_pids_mutex; |
Greg Clayton | 8b82f08 | 2011-04-12 05:54:46 +0000 | [diff] [blame] | 170 | lldb_private::ProcessInstanceInfoList m_proc_infos; |
Greg Clayton | 32e0a75 | 2011-03-30 18:16:51 +0000 | [diff] [blame] | 171 | uint32_t m_proc_infos_index; |
Greg Clayton | 29b8fc4 | 2013-11-21 01:44:58 +0000 | [diff] [blame] | 172 | PortMap m_port_map; |
Greg Clayton | 2b98c56 | 2013-11-22 18:53:12 +0000 | [diff] [blame] | 173 | uint16_t m_port_offset; |
Daniel Malea | e0f8f57 | 2013-08-26 23:57:52 +0000 | [diff] [blame] | 174 | |
Greg Clayton | 576d883 | 2011-03-22 04:00:09 +0000 | [diff] [blame] | 175 | |
Greg Clayton | 3dedae1 | 2013-12-06 21:45:27 +0000 | [diff] [blame] | 176 | PacketResult |
Greg Clayton | 32e0a75 | 2011-03-30 18:16:51 +0000 | [diff] [blame] | 177 | SendUnimplementedResponse (const char *packet); |
| 178 | |
Greg Clayton | 3dedae1 | 2013-12-06 21:45:27 +0000 | [diff] [blame] | 179 | PacketResult |
Greg Clayton | 32e0a75 | 2011-03-30 18:16:51 +0000 | [diff] [blame] | 180 | SendErrorResponse (uint8_t error); |
Greg Clayton | 576d883 | 2011-03-22 04:00:09 +0000 | [diff] [blame] | 181 | |
Greg Clayton | 3dedae1 | 2013-12-06 21:45:27 +0000 | [diff] [blame] | 182 | PacketResult |
Greg Clayton | 1cb6496 | 2011-03-24 04:28:38 +0000 | [diff] [blame] | 183 | SendOKResponse (); |
Greg Clayton | 576d883 | 2011-03-22 04:00:09 +0000 | [diff] [blame] | 184 | |
Greg Clayton | 3dedae1 | 2013-12-06 21:45:27 +0000 | [diff] [blame] | 185 | PacketResult |
Greg Clayton | 8b82f08 | 2011-04-12 05:54:46 +0000 | [diff] [blame] | 186 | Handle_A (StringExtractorGDBRemote &packet); |
Daniel Malea | e0f8f57 | 2013-08-26 23:57:52 +0000 | [diff] [blame] | 187 | |
Greg Clayton | 3dedae1 | 2013-12-06 21:45:27 +0000 | [diff] [blame] | 188 | PacketResult |
Greg Clayton | 8b82f08 | 2011-04-12 05:54:46 +0000 | [diff] [blame] | 189 | Handle_qLaunchSuccess (StringExtractorGDBRemote &packet); |
| 190 | |
Greg Clayton | 3dedae1 | 2013-12-06 21:45:27 +0000 | [diff] [blame] | 191 | PacketResult |
Greg Clayton | 32e0a75 | 2011-03-30 18:16:51 +0000 | [diff] [blame] | 192 | Handle_qHostInfo (StringExtractorGDBRemote &packet); |
| 193 | |
Greg Clayton | 3dedae1 | 2013-12-06 21:45:27 +0000 | [diff] [blame] | 194 | PacketResult |
Greg Clayton | 8b82f08 | 2011-04-12 05:54:46 +0000 | [diff] [blame] | 195 | Handle_qLaunchGDBServer (StringExtractorGDBRemote &packet); |
Daniel Malea | e0f8f57 | 2013-08-26 23:57:52 +0000 | [diff] [blame] | 196 | |
Greg Clayton | 3dedae1 | 2013-12-06 21:45:27 +0000 | [diff] [blame] | 197 | PacketResult |
Daniel Malea | e0f8f57 | 2013-08-26 23:57:52 +0000 | [diff] [blame] | 198 | Handle_qKillSpawnedProcess (StringExtractorGDBRemote &packet); |
Greg Clayton | 8b82f08 | 2011-04-12 05:54:46 +0000 | [diff] [blame] | 199 | |
Greg Clayton | 3dedae1 | 2013-12-06 21:45:27 +0000 | [diff] [blame] | 200 | PacketResult |
Todd Fiala | 403edc5 | 2014-01-23 22:05:44 +0000 | [diff] [blame] | 201 | Handle_k (StringExtractorGDBRemote &packet); |
| 202 | |
| 203 | PacketResult |
Greg Clayton | fbb7634 | 2013-11-20 21:07:01 +0000 | [diff] [blame] | 204 | Handle_qPlatform_mkdir (StringExtractorGDBRemote &packet); |
| 205 | |
Greg Clayton | 3dedae1 | 2013-12-06 21:45:27 +0000 | [diff] [blame] | 206 | PacketResult |
Greg Clayton | fbb7634 | 2013-11-20 21:07:01 +0000 | [diff] [blame] | 207 | Handle_qPlatform_chmod (StringExtractorGDBRemote &packet); |
Daniel Malea | e0f8f57 | 2013-08-26 23:57:52 +0000 | [diff] [blame] | 208 | |
Greg Clayton | 3dedae1 | 2013-12-06 21:45:27 +0000 | [diff] [blame] | 209 | PacketResult |
Greg Clayton | 32e0a75 | 2011-03-30 18:16:51 +0000 | [diff] [blame] | 210 | Handle_qProcessInfoPID (StringExtractorGDBRemote &packet); |
| 211 | |
Greg Clayton | 3dedae1 | 2013-12-06 21:45:27 +0000 | [diff] [blame] | 212 | PacketResult |
Greg Clayton | 32e0a75 | 2011-03-30 18:16:51 +0000 | [diff] [blame] | 213 | Handle_qfProcessInfo (StringExtractorGDBRemote &packet); |
| 214 | |
Greg Clayton | 3dedae1 | 2013-12-06 21:45:27 +0000 | [diff] [blame] | 215 | PacketResult |
Greg Clayton | 32e0a75 | 2011-03-30 18:16:51 +0000 | [diff] [blame] | 216 | Handle_qsProcessInfo (StringExtractorGDBRemote &packet); |
| 217 | |
Greg Clayton | 3dedae1 | 2013-12-06 21:45:27 +0000 | [diff] [blame] | 218 | PacketResult |
Greg Clayton | 8b82f08 | 2011-04-12 05:54:46 +0000 | [diff] [blame] | 219 | Handle_qC (StringExtractorGDBRemote &packet); |
| 220 | |
Greg Clayton | 3dedae1 | 2013-12-06 21:45:27 +0000 | [diff] [blame] | 221 | PacketResult |
Greg Clayton | 32e0a75 | 2011-03-30 18:16:51 +0000 | [diff] [blame] | 222 | Handle_qUserName (StringExtractorGDBRemote &packet); |
| 223 | |
Greg Clayton | 3dedae1 | 2013-12-06 21:45:27 +0000 | [diff] [blame] | 224 | PacketResult |
Greg Clayton | 32e0a75 | 2011-03-30 18:16:51 +0000 | [diff] [blame] | 225 | Handle_qGroupName (StringExtractorGDBRemote &packet); |
Greg Clayton | 576d883 | 2011-03-22 04:00:09 +0000 | [diff] [blame] | 226 | |
Greg Clayton | 3dedae1 | 2013-12-06 21:45:27 +0000 | [diff] [blame] | 227 | PacketResult |
Greg Clayton | 9b1e1cd | 2011-04-04 18:18:57 +0000 | [diff] [blame] | 228 | Handle_qSpeedTest (StringExtractorGDBRemote &packet); |
| 229 | |
Greg Clayton | 3dedae1 | 2013-12-06 21:45:27 +0000 | [diff] [blame] | 230 | PacketResult |
Greg Clayton | 8b82f08 | 2011-04-12 05:54:46 +0000 | [diff] [blame] | 231 | Handle_QEnvironment (StringExtractorGDBRemote &packet); |
| 232 | |
Greg Clayton | 3dedae1 | 2013-12-06 21:45:27 +0000 | [diff] [blame] | 233 | PacketResult |
Daniel Malea | e0f8f57 | 2013-08-26 23:57:52 +0000 | [diff] [blame] | 234 | Handle_QLaunchArch (StringExtractorGDBRemote &packet); |
| 235 | |
Greg Clayton | 3dedae1 | 2013-12-06 21:45:27 +0000 | [diff] [blame] | 236 | PacketResult |
Greg Clayton | 8b82f08 | 2011-04-12 05:54:46 +0000 | [diff] [blame] | 237 | Handle_QSetDisableASLR (StringExtractorGDBRemote &packet); |
| 238 | |
Greg Clayton | 3dedae1 | 2013-12-06 21:45:27 +0000 | [diff] [blame] | 239 | PacketResult |
Greg Clayton | 8b82f08 | 2011-04-12 05:54:46 +0000 | [diff] [blame] | 240 | Handle_QSetWorkingDir (StringExtractorGDBRemote &packet); |
Greg Clayton | fbb7634 | 2013-11-20 21:07:01 +0000 | [diff] [blame] | 241 | |
Greg Clayton | 3dedae1 | 2013-12-06 21:45:27 +0000 | [diff] [blame] | 242 | PacketResult |
Greg Clayton | fbb7634 | 2013-11-20 21:07:01 +0000 | [diff] [blame] | 243 | Handle_qGetWorkingDir (StringExtractorGDBRemote &packet); |
Greg Clayton | 8b82f08 | 2011-04-12 05:54:46 +0000 | [diff] [blame] | 244 | |
Greg Clayton | 3dedae1 | 2013-12-06 21:45:27 +0000 | [diff] [blame] | 245 | PacketResult |
Greg Clayton | 32e0a75 | 2011-03-30 18:16:51 +0000 | [diff] [blame] | 246 | Handle_QStartNoAckMode (StringExtractorGDBRemote &packet); |
Greg Clayton | 1cb6496 | 2011-03-24 04:28:38 +0000 | [diff] [blame] | 247 | |
Greg Clayton | 3dedae1 | 2013-12-06 21:45:27 +0000 | [diff] [blame] | 248 | PacketResult |
Greg Clayton | 8b82f08 | 2011-04-12 05:54:46 +0000 | [diff] [blame] | 249 | Handle_QSetSTDIN (StringExtractorGDBRemote &packet); |
| 250 | |
Greg Clayton | 3dedae1 | 2013-12-06 21:45:27 +0000 | [diff] [blame] | 251 | PacketResult |
Greg Clayton | 8b82f08 | 2011-04-12 05:54:46 +0000 | [diff] [blame] | 252 | Handle_QSetSTDOUT (StringExtractorGDBRemote &packet); |
| 253 | |
Greg Clayton | 3dedae1 | 2013-12-06 21:45:27 +0000 | [diff] [blame] | 254 | PacketResult |
Greg Clayton | 8b82f08 | 2011-04-12 05:54:46 +0000 | [diff] [blame] | 255 | Handle_QSetSTDERR (StringExtractorGDBRemote &packet); |
| 256 | |
Greg Clayton | 3dedae1 | 2013-12-06 21:45:27 +0000 | [diff] [blame] | 257 | PacketResult |
Daniel Malea | e0f8f57 | 2013-08-26 23:57:52 +0000 | [diff] [blame] | 258 | Handle_vFile_Open (StringExtractorGDBRemote &packet); |
| 259 | |
Greg Clayton | 3dedae1 | 2013-12-06 21:45:27 +0000 | [diff] [blame] | 260 | PacketResult |
Daniel Malea | e0f8f57 | 2013-08-26 23:57:52 +0000 | [diff] [blame] | 261 | Handle_vFile_Close (StringExtractorGDBRemote &packet); |
| 262 | |
Greg Clayton | 3dedae1 | 2013-12-06 21:45:27 +0000 | [diff] [blame] | 263 | PacketResult |
Daniel Malea | e0f8f57 | 2013-08-26 23:57:52 +0000 | [diff] [blame] | 264 | Handle_vFile_pRead (StringExtractorGDBRemote &packet); |
| 265 | |
Greg Clayton | 3dedae1 | 2013-12-06 21:45:27 +0000 | [diff] [blame] | 266 | PacketResult |
Daniel Malea | e0f8f57 | 2013-08-26 23:57:52 +0000 | [diff] [blame] | 267 | Handle_vFile_pWrite (StringExtractorGDBRemote &packet); |
| 268 | |
Greg Clayton | 3dedae1 | 2013-12-06 21:45:27 +0000 | [diff] [blame] | 269 | PacketResult |
Daniel Malea | e0f8f57 | 2013-08-26 23:57:52 +0000 | [diff] [blame] | 270 | Handle_vFile_Size (StringExtractorGDBRemote &packet); |
| 271 | |
Greg Clayton | 3dedae1 | 2013-12-06 21:45:27 +0000 | [diff] [blame] | 272 | PacketResult |
Daniel Malea | e0f8f57 | 2013-08-26 23:57:52 +0000 | [diff] [blame] | 273 | Handle_vFile_Mode (StringExtractorGDBRemote &packet); |
| 274 | |
Greg Clayton | 3dedae1 | 2013-12-06 21:45:27 +0000 | [diff] [blame] | 275 | PacketResult |
Daniel Malea | e0f8f57 | 2013-08-26 23:57:52 +0000 | [diff] [blame] | 276 | Handle_vFile_Exists (StringExtractorGDBRemote &packet); |
Greg Clayton | fbb7634 | 2013-11-20 21:07:01 +0000 | [diff] [blame] | 277 | |
Greg Clayton | 3dedae1 | 2013-12-06 21:45:27 +0000 | [diff] [blame] | 278 | PacketResult |
Greg Clayton | fbb7634 | 2013-11-20 21:07:01 +0000 | [diff] [blame] | 279 | Handle_vFile_symlink (StringExtractorGDBRemote &packet); |
| 280 | |
Greg Clayton | 3dedae1 | 2013-12-06 21:45:27 +0000 | [diff] [blame] | 281 | PacketResult |
Greg Clayton | fbb7634 | 2013-11-20 21:07:01 +0000 | [diff] [blame] | 282 | Handle_vFile_unlink (StringExtractorGDBRemote &packet); |
Daniel Malea | e0f8f57 | 2013-08-26 23:57:52 +0000 | [diff] [blame] | 283 | |
Greg Clayton | 3dedae1 | 2013-12-06 21:45:27 +0000 | [diff] [blame] | 284 | PacketResult |
Daniel Malea | e0f8f57 | 2013-08-26 23:57:52 +0000 | [diff] [blame] | 285 | Handle_vFile_Stat (StringExtractorGDBRemote &packet); |
| 286 | |
Greg Clayton | 3dedae1 | 2013-12-06 21:45:27 +0000 | [diff] [blame] | 287 | PacketResult |
Daniel Malea | e0f8f57 | 2013-08-26 23:57:52 +0000 | [diff] [blame] | 288 | Handle_vFile_MD5 (StringExtractorGDBRemote &packet); |
| 289 | |
Greg Clayton | 3dedae1 | 2013-12-06 21:45:27 +0000 | [diff] [blame] | 290 | PacketResult |
Greg Clayton | fbb7634 | 2013-11-20 21:07:01 +0000 | [diff] [blame] | 291 | Handle_qPlatform_shell (StringExtractorGDBRemote &packet); |
Daniel Malea | e0f8f57 | 2013-08-26 23:57:52 +0000 | [diff] [blame] | 292 | |
Greg Clayton | 576d883 | 2011-03-22 04:00:09 +0000 | [diff] [blame] | 293 | private: |
Daniel Malea | e0f8f57 | 2013-08-26 23:57:52 +0000 | [diff] [blame] | 294 | bool |
| 295 | DebugserverProcessReaped (lldb::pid_t pid); |
| 296 | |
| 297 | static bool |
| 298 | ReapDebugserverProcess (void *callback_baton, |
| 299 | lldb::pid_t pid, |
| 300 | bool exited, |
| 301 | int signal, |
| 302 | int status); |
| 303 | |
Todd Fiala | 403edc5 | 2014-01-23 22:05:44 +0000 | [diff] [blame] | 304 | bool |
| 305 | KillSpawnedProcess (lldb::pid_t pid); |
| 306 | |
Greg Clayton | 576d883 | 2011-03-22 04:00:09 +0000 | [diff] [blame] | 307 | //------------------------------------------------------------------ |
| 308 | // For GDBRemoteCommunicationServer only |
| 309 | //------------------------------------------------------------------ |
| 310 | DISALLOW_COPY_AND_ASSIGN (GDBRemoteCommunicationServer); |
| 311 | }; |
| 312 | |
| 313 | #endif // liblldb_GDBRemoteCommunicationServer_h_ |