LLDB  mainline
Classes | Public Types | Public Member Functions | List of all members
lldb_private::process_gdb_remote::GDBRemoteCommunicationHistory Class Reference

The history keeps a circular buffer of GDB remote packets. More...

#include <GDBRemoteCommunicationHistory.h>


struct  Entry
 Entry in the ring buffer containing the packet data, its type, size and index. More...

Public Types

enum  PacketType { ePacketTypeInvalid = 0, ePacketTypeSend, ePacketTypeRecv }

Public Member Functions

 GDBRemoteCommunicationHistory (uint32_t size=0)
 ~GDBRemoteCommunicationHistory ()
void AddPacket (char packet_char, PacketType type, uint32_t bytes_transmitted)
void AddPacket (const std::string &src, uint32_t src_len, PacketType type, uint32_t bytes_transmitted)
void Dump (Stream &strm) const
void Dump (Log *log) const
bool DidDumpToLog () const
void SetStream (llvm::raw_ostream *strm)

Detailed Description

The history keeps a circular buffer of GDB remote packets.

The history is used for logging and replaying GDB remote packets.

Definition at line 24 of file GDBRemoteCommunicationHistory.h.

Member Enumeration Documentation

◆ PacketType


Definition at line 28 of file GDBRemoteCommunicationHistory.h.

Constructor & Destructor Documentation

◆ GDBRemoteCommunicationHistory()

GDBRemoteCommunicationHistory::GDBRemoteCommunicationHistory ( uint32_t  size = 0)

Definition at line 27 of file GDBRemoteCommunicationHistory.cpp.

◆ ~GDBRemoteCommunicationHistory()

GDBRemoteCommunicationHistory::~GDBRemoteCommunicationHistory ( )

Definition at line 34 of file GDBRemoteCommunicationHistory.cpp.

Member Function Documentation

◆ AddPacket() [1/2]

void GDBRemoteCommunicationHistory::AddPacket ( char  packet_char,
PacketType  type,
uint32_t  bytes_transmitted 

◆ AddPacket() [2/2]

void GDBRemoteCommunicationHistory::AddPacket ( const std::string &  src,
uint32_t  src_len,
PacketType  type,
uint32_t  bytes_transmitted 

Definition at line 52 of file GDBRemoteCommunicationHistory.cpp.

◆ DidDumpToLog()

bool lldb_private::process_gdb_remote::GDBRemoteCommunicationHistory::DidDumpToLog ( ) const

◆ Dump() [1/2]

void GDBRemoteCommunicationHistory::Dump ( Stream strm) const

◆ Dump() [2/2]

void GDBRemoteCommunicationHistory::Dump ( Log log) const

◆ SetStream()

void lldb_private::process_gdb_remote::GDBRemoteCommunicationHistory::SetStream ( llvm::raw_ostream *  strm)

The documentation for this class was generated from the following files: