ETISS 0.8.0
Extendable Translating Instruction Set Simulator (version 0.8.0)
Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
etiss::plugin::gdb::PacketProtocol Class Reference

implements gdb's packet protocol More...

#include <GDBConnection.h>

Collaboration diagram for etiss::plugin::gdb::PacketProtocol:
Collaboration graph
[legend]

Public Member Functions

virtual bool available (bool block=false)
 
virtual std::string rcv (bool &isnotification)
 
virtual bool snd (std::string answer, bool isnotification)
 

Private Member Functions

 PacketProtocol (Connection &connection)
 
virtual bool _available (bool block)
 
virtual void tryReadPacket ()
 

Private Attributes

std::string buffer
 
std::string command
 
bool command_isnotification
 
Connectioncon
 
bool cfg_noack_
 

Friends

class Connection
 

Detailed Description

implements gdb's packet protocol

Definition at line 75 of file GDBConnection.h.

Constructor & Destructor Documentation

◆ PacketProtocol()

PacketProtocol::PacketProtocol ( Connection connection)
private

Definition at line 72 of file GDBConnection.cpp.

References cfg_noack_.

Member Function Documentation

◆ _available()

bool PacketProtocol::_available ( bool  block)
privatevirtual

Definition at line 166 of file GDBConnection.cpp.

References etiss::plugin::gdb::Connection::available(), buffer, command, con, etiss::plugin::gdb::Connection::rcv(), and tryReadPacket().

Referenced by available().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ available()

bool PacketProtocol::available ( bool  block = false)
virtual

Definition at line 150 of file GDBConnection.cpp.

References _available(), cfg_noack_, command, and snd().

Referenced by etiss::plugin::gdb::Server::handlePacket(), and rcv().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ rcv()

std::string PacketProtocol::rcv ( bool isnotification)
virtual

Definition at line 297 of file GDBConnection.cpp.

References available(), command, and command_isnotification.

Referenced by etiss::plugin::gdb::Server::handlePacket().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ snd()

bool PacketProtocol::snd ( std::string  answer,
bool  isnotification 
)
virtual

◆ tryReadPacket()

void PacketProtocol::tryReadPacket ( )
privatevirtual

Friends And Related Function Documentation

◆ Connection

friend class Connection
friend

Definition at line 77 of file GDBConnection.h.

Member Data Documentation

◆ buffer

std::string etiss::plugin::gdb::PacketProtocol::buffer
private

Definition at line 90 of file GDBConnection.h.

Referenced by _available(), snd(), and tryReadPacket().

◆ cfg_noack_

bool etiss::plugin::gdb::PacketProtocol::cfg_noack_
private

Definition at line 94 of file GDBConnection.h.

Referenced by available(), PacketProtocol(), and snd().

◆ command

std::string etiss::plugin::gdb::PacketProtocol::command
private

Definition at line 91 of file GDBConnection.h.

Referenced by _available(), available(), rcv(), and tryReadPacket().

◆ command_isnotification

bool etiss::plugin::gdb::PacketProtocol::command_isnotification
private

Definition at line 92 of file GDBConnection.h.

Referenced by rcv(), and tryReadPacket().

◆ con

Connection& etiss::plugin::gdb::PacketProtocol::con
private

Definition at line 93 of file GDBConnection.h.

Referenced by _available(), snd(), and tryReadPacket().


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