LLDB  mainline
GDBRemoteCommunication.h
Go to the documentation of this file.
1 //===-- GDBRemoteCommunication.h --------------------------------*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 
9 #ifndef LLDB_SOURCE_PLUGINS_PROCESS_GDB_REMOTE_GDBREMOTECOMMUNICATION_H
10 #define LLDB_SOURCE_PLUGINS_PROCESS_GDB_REMOTE_GDBREMOTECOMMUNICATION_H
11 
13 
14 #include <condition_variable>
15 #include <mutex>
16 #include <queue>
17 #include <string>
18 #include <vector>
19 
21 #include "lldb/Host/Config.h"
22 #include "lldb/Host/HostThread.h"
23 #include "lldb/Utility/Args.h"
24 #include "lldb/Utility/Listener.h"
25 #include "lldb/Utility/Predicate.h"
27 #include "lldb/lldb-public.h"
28 
29 namespace lldb_private {
30 namespace repro {
31 class PacketRecorder;
32 }
33 namespace process_gdb_remote {
34 
42 };
43 
44 enum class CompressionType {
45  None = 0, // no compression
46  ZlibDeflate, // zlib's deflate compression scheme, requires zlib or Apple's
47  // libcompression
48  LZFSE, // an Apple compression scheme, requires Apple's libcompression
49  LZ4, // lz compression - called "lz4 raw" in libcompression terms, compat with
50  // https://code.google.com/p/lz4/
51  LZMA, // Lempel–Ziv–Markov chain algorithm
52 };
53 
54 // Data included in the vFile:fstat packet.
55 // https://sourceware.org/gdb/onlinedocs/gdb/struct-stat.html#struct-stat
57  llvm::support::ubig32_t gdb_st_dev;
58  llvm::support::ubig32_t gdb_st_ino;
59  llvm::support::ubig32_t gdb_st_mode;
60  llvm::support::ubig32_t gdb_st_nlink;
61  llvm::support::ubig32_t gdb_st_uid;
62  llvm::support::ubig32_t gdb_st_gid;
63  llvm::support::ubig32_t gdb_st_rdev;
64  llvm::support::ubig64_t gdb_st_size;
65  llvm::support::ubig64_t gdb_st_blksize;
66  llvm::support::ubig64_t gdb_st_blocks;
67  llvm::support::ubig32_t gdb_st_atime;
68  llvm::support::ubig32_t gdb_st_mtime;
69  llvm::support::ubig32_t gdb_st_ctime;
70 };
71 static_assert(sizeof(GDBRemoteFStatData) == 64,
72  "size of GDBRemoteFStatData is not 64");
73 
74 enum GDBErrno {
75 #define HANDLE_ERRNO(name, value) GDB_##name = value,
76 #include "Plugins/Process/gdb-remote/GDBRemoteErrno.def"
77  GDB_EUNKNOWN = 9999
78 };
79 
80 class ProcessGDBRemote;
81 
83 public:
84  enum {
85  eBroadcastBitRunPacketSent = kLoUserBroadcastBit,
87  kLoUserBroadcastBit << 1 // Sent when we received a notify packet.
88  };
89 
90  enum class PacketType { Invalid = 0, Standard, Notify };
91 
92  enum class PacketResult {
93  Success = 0, // Success
94  ErrorSendFailed, // Status sending the packet
95  ErrorSendAck, // Didn't get an ack back after sending a packet
96  ErrorReplyFailed, // Status getting the reply
97  ErrorReplyTimeout, // Timed out waiting for reply
98  ErrorReplyInvalid, // Got a reply but it wasn't valid for the packet that
99  // was sent
100  ErrorReplyAck, // Sending reply ack failed
101  ErrorDisconnected, // We were disconnected
102  ErrorNoSequenceLock // We couldn't get the sequence lock for a multi-packet
103  // request
104  };
105 
106  // Class to change the timeout for a given scope and restore it to the
107  // original value when the
108  // created ScopedTimeout object got out of scope
110  public:
112  std::chrono::seconds timeout);
113  ~ScopedTimeout();
114 
115  private:
117  std::chrono::seconds m_saved_timeout;
118  // Don't ever reduce the timeout for a packet, only increase it. If the
119  // requested timeout if less than the current timeout, we don't set it
120  // and won't need to restore it.
122  };
123 
124  GDBRemoteCommunication(const char *comm_name, const char *listener_name);
125 
126  ~GDBRemoteCommunication() override;
127 
129 
130  size_t SendAck();
131 
132  size_t SendNack();
133 
134  char CalculcateChecksum(llvm::StringRef payload);
135 
136  PacketType CheckForPacket(const uint8_t *src, size_t src_len,
137  StringExtractorGDBRemote &packet);
138 
139  bool GetSendAcks() { return m_send_acks; }
140 
141  // Set the global packet timeout.
142  //
143  // For clients, this is the timeout that gets used when sending
144  // packets and waiting for responses. For servers, this is used when waiting
145  // for ACKs.
146  std::chrono::seconds SetPacketTimeout(std::chrono::seconds packet_timeout) {
147  const auto old_packet_timeout = m_packet_timeout;
148  m_packet_timeout = packet_timeout;
149  return old_packet_timeout;
150  }
151 
152  std::chrono::seconds GetPacketTimeout() const { return m_packet_timeout; }
153 
154  // Start a debugserver instance on the current host using the
155  // supplied connection URL.
157  const char *url,
158  Platform *platform, // If non nullptr, then check with the platform for
159  // the GDB server binary if it can't be located
160  ProcessLaunchInfo &launch_info, uint16_t *port, const Args *inferior_args,
161  int pass_comm_fd); // Communication file descriptor to pass during
162  // fork/exec to avoid having to connect/accept
163 
164  void DumpHistory(Stream &strm);
165 
167 
169  GDBRemoteCommunication &server);
170 
171  /// Expand GDB run-length encoding.
173 
174 protected:
175  std::chrono::seconds m_packet_timeout;
180  bool m_is_platform; // Set to true if this class represents a platform,
181  // false if this class represents a debug session for
182  // a single process
183 
185 
186  PacketResult SendPacketNoLock(llvm::StringRef payload);
187  PacketResult SendRawPacketNoLock(llvm::StringRef payload,
188  bool skip_ack = false);
189 
191  Timeout<std::micro> timeout, bool sync_on_timeout);
192 
195  bool sync_on_timeout,
196  llvm::function_ref<void(llvm::StringRef)> output_callback);
197 
198  // Pop a packet from the queue in a thread safe manner
200  Timeout<std::micro> timeout);
201 
203  Timeout<std::micro> timeout,
204  bool sync_on_timeout);
205 
208  }
209 
210  // If compression is enabled, decompress the packet in m_bytes and update
211  // m_bytes with the uncompressed version.
212  // Returns 'true' packet was decompressed and m_bytes is the now-decompressed
213  // text.
214  // Returns 'false' if unable to decompress or if the checksum was invalid.
215  //
216  // NB: Once the packet has been decompressed, checksum cannot be computed
217  // based
218  // on m_bytes. The checksum was for the compressed packet.
219  bool DecompressPacket();
220 
221  Status StartListenThread(const char *hostname = "127.0.0.1",
222  uint16_t port = 0);
223 
224  bool JoinListenThread();
225 
227 
228  // GDB-Remote read thread
229  // . this thread constantly tries to read from the communication
230  // class and stores all packets received in a queue. The usual
231  // threads read requests simply pop packets off the queue in the
232  // usual order.
233  // This setup allows us to intercept and handle async packets, such
234  // as the notify packet.
235 
236  // This method is defined as part of communication.h
237  // when the read thread gets any bytes it will pass them on to this function
238  void AppendBytesToCache(const uint8_t *bytes, size_t len, bool broadcast,
239  lldb::ConnectionStatus status) override;
240 
241 private:
242  std::queue<StringExtractorGDBRemote> m_packet_queue; // The packet queue
243  std::mutex m_packet_queue_mutex; // Mutex for accessing queue
244  std::condition_variable
245  m_condition_queue_not_empty; // Condition variable to wait for packets
246 
249 
250 #if defined(HAVE_LIBCOMPRESSION)
251  CompressionType m_decompression_scratch_type = CompressionType::None;
252  void *m_decompression_scratch = nullptr;
253 #endif
254 
256  const GDBRemoteCommunication &
257  operator=(const GDBRemoteCommunication &) = delete;
258 };
259 
260 } // namespace process_gdb_remote
261 } // namespace lldb_private
262 
263 namespace llvm {
264 template <>
265 struct format_provider<
266  lldb_private::process_gdb_remote::GDBRemoteCommunication::PacketResult> {
267  static void format(const lldb_private::process_gdb_remote::
268  GDBRemoteCommunication::PacketResult &state,
269  raw_ostream &Stream, StringRef Style);
270 };
271 } // namespace llvm
272 
273 #endif // LLDB_SOURCE_PLUGINS_PROCESS_GDB_REMOTE_GDBREMOTECOMMUNICATION_H
lldb_private::process_gdb_remote::GDBRemoteCommunication::PacketType::Notify
@ Notify
lldb_private::process_gdb_remote::GDBRemoteCommunication::~GDBRemoteCommunication
~GDBRemoteCommunication() override
Definition: GDBRemoteCommunication.cpp:76
lldb_private::process_gdb_remote::CompressionType
CompressionType
Definition: GDBRemoteCommunication.h:44
lldb_private::process_gdb_remote::GDBRemoteCommunication::PopPacketFromQueue
PacketResult PopPacketFromQueue(StringExtractorGDBRemote &response, Timeout< std::micro > timeout)
Definition: GDBRemoteCommunication.cpp:240
lldb-public.h
llvm
Definition: Debugger.h:49
lldb_private::process_gdb_remote::GDBRemoteCommunication::AppendBytesToCache
void AppendBytesToCache(const uint8_t *bytes, size_t len, bool broadcast, lldb::ConnectionStatus status) override
Append new bytes that get read from the read thread into the internal object byte cache.
Definition: GDBRemoteCommunication.cpp:1288
lldb_private::process_gdb_remote::GDBRemoteFStatData::gdb_st_rdev
llvm::support::ubig32_t gdb_st_rdev
Definition: GDBRemoteCommunication.h:63
lldb_private::process_gdb_remote::GDBRemoteFStatData::gdb_st_blocks
llvm::support::ubig64_t gdb_st_blocks
Definition: GDBRemoteCommunication.h:66
lldb_private::process_gdb_remote::GDBRemoteCommunication::CalculcateChecksum
char CalculcateChecksum(llvm::StringRef payload)
Definition: GDBRemoteCommunication.cpp:92
lldb_private::process_gdb_remote::GDBRemoteCommunication::SetPacketTimeout
std::chrono::seconds SetPacketTimeout(std::chrono::seconds packet_timeout)
Definition: GDBRemoteCommunication.h:146
lldb_private::HostThread
Definition: HostThread.h:29
lldb_private::process_gdb_remote::GDBRemoteCommunication::m_packet_queue
std::queue< StringExtractorGDBRemote > m_packet_queue
Definition: GDBRemoteCommunication.h:242
lldb_private::process_gdb_remote::eWatchpointReadWrite
@ eWatchpointReadWrite
Definition: GDBRemoteCommunication.h:41
lldb_private::process_gdb_remote::GDBRemoteFStatData::gdb_st_dev
llvm::support::ubig32_t gdb_st_dev
Definition: GDBRemoteCommunication.h:57
lldb_private::process_gdb_remote::GDBRemoteCommunication::SendAck
size_t SendAck()
Definition: GDBRemoteCommunication.cpp:101
lldb_private::process_gdb_remote::GDB_EUNKNOWN
@ GDB_EUNKNOWN
Definition: GDBRemoteCommunication.h:77
lldb_private::process_gdb_remote::eStoppointInvalid
@ eStoppointInvalid
Definition: GDBRemoteCommunication.h:36
lldb_private::process_gdb_remote::GDBRemoteCommunication::PacketResult
PacketResult
Definition: GDBRemoteCommunication.h:92
lldb_private::process_gdb_remote::GDBRemoteCommunication::DecompressPacket
bool DecompressPacket()
Definition: GDBRemoteCommunication.cpp:412
lldb_private::process_gdb_remote::GDBRemoteFStatData::gdb_st_size
llvm::support::ubig64_t gdb_st_size
Definition: GDBRemoteCommunication.h:64
lldb_private::process_gdb_remote::GDBRemoteCommunication::m_listen_thread
HostThread m_listen_thread
Definition: GDBRemoteCommunication.h:247
lldb_private::process_gdb_remote::GDBRemoteCommunication::CompressionIsEnabled
bool CompressionIsEnabled()
Definition: GDBRemoteCommunication.h:206
lldb_private::process_gdb_remote::GDBRemoteCommunication
Definition: GDBRemoteCommunication.h:82
lldb_private::process_gdb_remote::GDBRemoteCommunication::ScopedTimeout::m_saved_timeout
std::chrono::seconds m_saved_timeout
Definition: GDBRemoteCommunication.h:117
lldb_private::process_gdb_remote::GDBRemoteCommunication::eBroadcastBitGdbReadThreadGotNotify
@ eBroadcastBitGdbReadThreadGotNotify
Definition: GDBRemoteCommunication.h:86
lldb_private::process_gdb_remote::eWatchpointWrite
@ eWatchpointWrite
Definition: GDBRemoteCommunication.h:39
lldb_private::process_gdb_remote::GDBRemoteFStatData::gdb_st_uid
llvm::support::ubig32_t gdb_st_uid
Definition: GDBRemoteCommunication.h:61
StringExtractorGDBRemote.h
lldb_private::Stream
Definition: Stream.h:28
lldb_private::process_gdb_remote::GDBRemoteFStatData::gdb_st_ctime
llvm::support::ubig32_t gdb_st_ctime
Definition: GDBRemoteCommunication.h:69
lldb_private::Args
Definition: Args.h:33
Predicate.h
lldb_private::LazyBool
LazyBool
Definition: lldb-private-enumerations.h:115
lldb_private::process_gdb_remote::GDBRemoteFStatData::gdb_st_ino
llvm::support::ubig32_t gdb_st_ino
Definition: GDBRemoteCommunication.h:58
Listener.h
lldb_private::process_gdb_remote::GDBRemoteFStatData::gdb_st_blksize
llvm::support::ubig64_t gdb_st_blksize
Definition: GDBRemoteCommunication.h:65
lldb_private::process_gdb_remote::GDBRemoteCommunication::WaitForPacketNoLock
PacketResult WaitForPacketNoLock(StringExtractorGDBRemote &response, Timeout< std::micro > timeout, bool sync_on_timeout)
Definition: GDBRemoteCommunication.cpp:266
lldb_private::process_gdb_remote::GDBRemoteCommunication::JoinListenThread
bool JoinListenThread()
Definition: GDBRemoteCommunication.cpp:882
lldb_private::process_gdb_remote::GDBRemoteCommunication::PacketType::Invalid
@ Invalid
lldb_private::process_gdb_remote::GDBRemoteCommunication::DumpHistory
void DumpHistory(Stream &strm)
Definition: GDBRemoteCommunication.cpp:1223
lldb_private::Communication
Definition: Communication.h:84
lldb_private::process_gdb_remote::GDBRemoteCommunication::PacketResult::ErrorReplyInvalid
@ ErrorReplyInvalid
lldb_private::process_gdb_remote::GDBRemoteCommunication::SendRawPacketNoLock
PacketResult SendRawPacketNoLock(llvm::StringRef payload, bool skip_ack=false)
Definition: GDBRemoteCommunication.cpp:134
lldb_private::process_gdb_remote::GDBRemoteCommunication::m_compression_type
CompressionType m_compression_type
Definition: GDBRemoteCommunication.h:184
lldb_private::process_gdb_remote::GDBRemoteCommunication::ListenThread
static lldb::thread_result_t ListenThread(lldb::thread_arg_t arg)
Definition: GDBRemoteCommunication.cpp:889
HostThread.h
lldb_private::process_gdb_remote::GDBRemoteCommunication::PacketResult::ErrorReplyAck
@ ErrorReplyAck
lldb_private::process_gdb_remote::GDBRemoteCommunication::StartDebugserverProcess
Status StartDebugserverProcess(const char *url, Platform *platform, ProcessLaunchInfo &launch_info, uint16_t *port, const Args *inferior_args, int pass_comm_fd)
Definition: GDBRemoteCommunication.cpp:904
lldb_private::ProcessLaunchInfo
Definition: ProcessLaunchInfo.h:31
Args.h
lldb_private::process_gdb_remote::GDBRemoteFStatData::gdb_st_nlink
llvm::support::ubig32_t gdb_st_nlink
Definition: GDBRemoteCommunication.h:60
lldb_private::process_gdb_remote::GDBRemoteCommunication::PacketResult::ErrorNoSequenceLock
@ ErrorNoSequenceLock
lldb_private::process_gdb_remote::GDBRemoteCommunication::m_history
GDBRemoteCommunicationHistory m_history
Definition: GDBRemoteCommunication.h:178
lldb_private::process_gdb_remote::GDBRemoteCommunication::ScopedTimeout::~ScopedTimeout
~ScopedTimeout()
Definition: GDBRemoteCommunication.cpp:1276
lldb_private::process_gdb_remote::GDBRemoteCommunication::m_echo_number
uint32_t m_echo_number
Definition: GDBRemoteCommunication.h:176
lldb_private::process_gdb_remote::GDBRemoteCommunication::PacketResult::ErrorSendFailed
@ ErrorSendFailed
lldb_private::process_gdb_remote::GDBRemoteCommunication::m_supports_qEcho
LazyBool m_supports_qEcho
Definition: GDBRemoteCommunication.h:177
lldb_private::process_gdb_remote::CompressionType::LZMA
@ LZMA
lldb_private::process_gdb_remote::GDBRemoteCommunication::m_send_acks
bool m_send_acks
Definition: GDBRemoteCommunication.h:179
lldb_private::process_gdb_remote::GDBRemoteCommunication::ScopedTimeout::m_gdb_comm
GDBRemoteCommunication & m_gdb_comm
Definition: GDBRemoteCommunication.h:116
lldb_private::process_gdb_remote::GDBRemoteCommunication::SetPacketRecorder
void SetPacketRecorder(repro::PacketRecorder *recorder)
Definition: GDBRemoteCommunication.cpp:1225
lldb_private::process_gdb_remote::eWatchpointRead
@ eWatchpointRead
Definition: GDBRemoteCommunication.h:40
lldb::ConnectionStatus
ConnectionStatus
Connection Status Types.
Definition: lldb-enumerations.h:295
lldb_private::process_gdb_remote::GDBRemoteCommunication::m_condition_queue_not_empty
std::condition_variable m_condition_queue_not_empty
Definition: GDBRemoteCommunication.h:245
lldb_private::process_gdb_remote::GDBRemoteFStatData::gdb_st_gid
llvm::support::ubig32_t gdb_st_gid
Definition: GDBRemoteCommunication.h:62
string
string(SUBSTRING ${p} 10 -1 pStripped) if($
Definition: Plugins/CMakeLists.txt:40
lldb::thread_arg_t
void * thread_arg_t
Definition: lldb-types.h:61
Communication.h
lldb_private::process_gdb_remote
Definition: GDBRemoteClientBase.h:17
lldb_private::process_gdb_remote::GDBRemoteCommunication::SendNack
size_t SendNack()
Definition: GDBRemoteCommunication.cpp:111
lldb_private::process_gdb_remote::GDBRemoteCommunication::m_packet_queue_mutex
std::mutex m_packet_queue_mutex
Definition: GDBRemoteCommunication.h:243
lldb_private::process_gdb_remote::GDBRemoteFStatData::gdb_st_mtime
llvm::support::ubig32_t gdb_st_mtime
Definition: GDBRemoteCommunication.h:68
lldb_private::process_gdb_remote::GDBRemoteCommunication::m_packet_timeout
std::chrono::seconds m_packet_timeout
Definition: GDBRemoteCommunication.h:175
GDBRemoteCommunicationHistory.h
lldb_private::process_gdb_remote::GDBRemoteCommunication::PacketResult::Success
@ Success
lldb_private::process_gdb_remote::GDBRemoteCommunication::GetAck
PacketResult GetAck()
Definition: GDBRemoteCommunication.cpp:195
lldb_private::process_gdb_remote::GDBRemoteCommunication::ScopedTimeout
Definition: GDBRemoteCommunication.h:109
lldb_private::process_gdb_remote::GDBRemoteCommunication::ScopedTimeout::ScopedTimeout
ScopedTimeout(GDBRemoteCommunication &gdb_comm, std::chrono::seconds timeout)
Definition: GDBRemoteCommunication.cpp:1264
lldb_private::process_gdb_remote::GDBRemoteCommunication::ConnectLocally
static llvm::Error ConnectLocally(GDBRemoteCommunication &client, GDBRemoteCommunication &server)
Definition: GDBRemoteCommunication.cpp:1231
lldb_private::process_gdb_remote::GDBRemoteCommunication::ReadPacket
PacketResult ReadPacket(StringExtractorGDBRemote &response, Timeout< std::micro > timeout, bool sync_on_timeout)
Definition: GDBRemoteCommunication.cpp:226
lldb_private::process_gdb_remote::GDBRemoteCommunication::PacketType::Standard
@ Standard
lldb_private::Status
Definition: Status.h:44
lldb_private::process_gdb_remote::eBreakpointHardware
@ eBreakpointHardware
Definition: GDBRemoteCommunication.h:38
lldb_private::Timeout< std::micro >
uint32_t
lldb_private::process_gdb_remote::GDBRemoteCommunication::StartListenThread
Status StartListenThread(const char *hostname="127.0.0.1", uint16_t port=0)
Definition: GDBRemoteCommunication.cpp:861
lldb::thread_result_t
void * thread_result_t
Definition: lldb-types.h:62
lldb_private::process_gdb_remote::GDBRemoteCommunication::m_listen_url
std::string m_listen_url
Definition: GDBRemoteCommunication.h:248
lldb_private::process_gdb_remote::GDBRemoteCommunication::PacketType
PacketType
Definition: GDBRemoteCommunication.h:90
lldb_private::process_gdb_remote::CompressionType::None
@ None
lldb_private::process_gdb_remote::GDBRemoteCommunication::CheckForPacket
PacketType CheckForPacket(const uint8_t *src, size_t src_len, StringExtractorGDBRemote &packet)
Definition: GDBRemoteCommunication.cpp:642
lldb_private::process_gdb_remote::GDBRemoteCommunication::GetSendAcks
bool GetSendAcks()
Definition: GDBRemoteCommunication.h:139
lldb_private::process_gdb_remote::GDBRemoteFStatData::gdb_st_atime
llvm::support::ubig32_t gdb_st_atime
Definition: GDBRemoteCommunication.h:67
lldb_private::process_gdb_remote::CompressionType::LZFSE
@ LZFSE
lldb_private::process_gdb_remote::GDBRemoteCommunication::ReadPacketWithOutputSupport
PacketResult ReadPacketWithOutputSupport(StringExtractorGDBRemote &response, Timeout< std::micro > timeout, bool sync_on_timeout, llvm::function_ref< void(llvm::StringRef)> output_callback)
Definition: GDBRemoteCommunication.cpp:209
lldb_private::process_gdb_remote::GDBRemoteCommunication::SendPacketNoLock
PacketResult SendPacketNoLock(llvm::StringRef payload)
Definition: GDBRemoteCommunication.cpp:122
lldb_private::process_gdb_remote::GDBRemoteCommunication::ScopedTimeout::m_timeout_modified
bool m_timeout_modified
Definition: GDBRemoteCommunication.h:121
uint16_t
lldb_private::process_gdb_remote::GDBRemoteCommunication::GDBRemoteCommunication
GDBRemoteCommunication(const char *comm_name, const char *listener_name)
Definition: GDBRemoteCommunication.cpp:62
lldb_private::process_gdb_remote::CompressionType::ZlibDeflate
@ ZlibDeflate
lldb_private::process_gdb_remote::GDBRemoteCommunication::eBroadcastBitRunPacketSent
@ eBroadcastBitRunPacketSent
Definition: GDBRemoteCommunication.h:85
lldb_private::Platform
Definition: Platform.h:72
lldb_private::repro::PacketRecorder
Definition: GDBRemote.h:85
lldb_private::process_gdb_remote::GDBErrno
GDBErrno
Definition: GDBRemoteCommunication.h:74
lldb_private::process_gdb_remote::eBreakpointSoftware
@ eBreakpointSoftware
Definition: GDBRemoteCommunication.h:37
lldb_private::process_gdb_remote::GDBRemoteCommunication::PacketResult::ErrorDisconnected
@ ErrorDisconnected
lldb_private::process_gdb_remote::GDBRemoteCommunication::PacketResult::ErrorReplyTimeout
@ ErrorReplyTimeout
lldb_private
A class that represents a running process on the host machine.
Definition: SBCommandInterpreterRunOptions.h:16
lldb_private::process_gdb_remote::GDBRemoteCommunication::PacketResult::ErrorReplyFailed
@ ErrorReplyFailed
Error
llvm::Error Error
Definition: UdtRecordCompleter.cpp:29
lldb_private::process_gdb_remote::GDBRemoteCommunication::GetPacketTimeout
std::chrono::seconds GetPacketTimeout() const
Definition: GDBRemoteCommunication.h:152
StringExtractorGDBRemote
Definition: StringExtractorGDBRemote.h:21
lldb_private::process_gdb_remote::GDBRemoteFStatData
Definition: GDBRemoteCommunication.h:56
lldb_private::process_gdb_remote::GDBRemoteCommunicationHistory
The history keeps a circular buffer of GDB remote packets.
Definition: GDBRemoteCommunicationHistory.h:29
lldb_private::process_gdb_remote::GDBStoppointType
GDBStoppointType
Definition: GDBRemoteCommunication.h:35
lldb_private::process_gdb_remote::CompressionType::LZ4
@ LZ4
lldb_private::process_gdb_remote::GDBRemoteFStatData::gdb_st_mode
llvm::support::ubig32_t gdb_st_mode
Definition: GDBRemoteCommunication.h:59
lldb_private::process_gdb_remote::GDBRemoteCommunication::m_is_platform
bool m_is_platform
Definition: GDBRemoteCommunication.h:180
lldb_private::process_gdb_remote::GDBRemoteCommunication::ExpandRLE
static std::string ExpandRLE(std::string)
Expand GDB run-length encoding.
Definition: GDBRemoteCommunication.cpp:1365
lldb_private::process_gdb_remote::GDBRemoteCommunication::operator=
const GDBRemoteCommunication & operator=(const GDBRemoteCommunication &)=delete
lldb_private::process_gdb_remote::GDBRemoteCommunication::PacketResult::ErrorSendAck
@ ErrorSendAck