30 uint32_t bytes_transmitted) {
36 m_packets[idx].packet.data.assign(1, packet_char);
38 m_packets[idx].bytes_transmitted = bytes_transmitted;
40 m_packets[idx].tid = llvm::get_threadid();
46 uint32_t bytes_transmitted) {
52 m_packets[idx].packet.data.assign(src, 0, src_len);
54 m_packets[idx].bytes_transmitted = bytes_transmitted;
56 m_packets[idx].tid = llvm::get_threadid();
63 for (uint32_t i = first_idx; i < stop_idx; ++i) {
82 for (uint32_t i = first_idx; i < stop_idx; ++i) {
88 LLDB_LOGF(log,
"history[%u] tid=0x%4.4" PRIx64
" <%4u> %s packet: %s",
#define LLDB_LOGF(log,...)
A stream class that can stream formatted output to a file.
size_t Printf(const char *format,...) __attribute__((format(printf
Output printf formatted output to the stream.
void Dump(Stream &strm) const
uint32_t m_total_packet_count
GDBRemoteCommunicationHistory(uint32_t size=0)
uint32_t NormalizeIndex(uint32_t i) const
uint32_t GetNumPacketsInHistory() const
uint32_t GetFirstSavedPacketIndex() const
void AddPacket(char packet_char, GDBRemotePacket::Type type, uint32_t bytes_transmitted)
std::vector< GDBRemotePacket > m_packets
~GDBRemoteCommunicationHistory()
A class that represents a running process on the host machine.
GDB remote packet as used by the GDB remote communication history.
void Dump(Stream &strm) const
uint32_t bytes_transmitted