gem5  v21.1.0.2
Classes | Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
gem5::RiscvISA::RemoteGDB Class Reference

#include <remote_gdb.hh>

Inheritance diagram for gem5::RiscvISA::RemoteGDB:
gem5::BaseRemoteGDB

Classes

class  RiscvGdbRegCache
 

Public Member Functions

 RemoteGDB (System *_system, int _port)
 
BaseGdbRegCachegdbRegs () override
 
std::vector< std::string > availableFeatures () const override
 Informs GDB remote serial protocol that XML features are supported GDB then queries for xml blobs using qXfer:features:read:xxx.xml. More...
 
bool getXferFeaturesRead (const std::string &annex, std::string &output) override
 Reply to qXfer:features:read:xxx.xml qeuries. More...
 
- Public Member Functions inherited from gem5::BaseRemoteGDB
bool breakpoint ()
 
void replaceThreadContext (ThreadContext *tc)
 
bool trap (ContextID id, int type)
 
virtual ~BaseRemoteGDB ()
 
 BaseRemoteGDB (System *system, int _port)
 Interface to other parts of the simulator. More...
 
virtual ~BaseRemoteGDB ()
 
std::string name ()
 
void listen ()
 
void connect ()
 
int port () const
 
void attach (int fd)
 
void detach ()
 
bool isAttached ()
 
void addThreadContext (ThreadContext *_tc)
 
void replaceThreadContext (ThreadContext *_tc)
 
bool selectThreadContext (ContextID id)
 
bool trap (ContextID id, int type)
 

Protected Member Functions

bool acc (Addr addr, size_t len) override
 
bool checkBpLen (size_t len) override
 
- Protected Member Functions inherited from gem5::BaseRemoteGDB
ThreadContextcontext ()
 
Systemsystem ()
 
void encodeBinaryData (const std::string &unencoded, std::string &encoded) const
 
void encodeXferResponse (const std::string &unencoded, std::string &encoded, size_t offset, size_t unencoded_length) const
 

Protected Attributes

RiscvGdbRegCache regCache
 

Static Protected Attributes

static const int NumGDBRegs = 4162
 
static const int NumCSRs = 4096
 

Additional Inherited Members

- Static Public Member Functions inherited from gem5::BaseRemoteGDB
template<class GDBStub , class ... Args>
static BaseRemoteGDBbuild (Args... args)
 

Detailed Description

Definition at line 51 of file remote_gdb.hh.

Constructor & Destructor Documentation

◆ RemoteGDB()

gem5::RiscvISA::RemoteGDB::RemoteGDB ( System _system,
int  _port 
)

Member Function Documentation

◆ acc()

bool gem5::RiscvISA::RemoteGDB::acc ( Addr  addr,
size_t  len 
)
overrideprotectedvirtual

Implements gem5::BaseRemoteGDB.

◆ availableFeatures()

std::vector<std::string> gem5::RiscvISA::RemoteGDB::availableFeatures ( ) const
inlineoverridevirtual

Informs GDB remote serial protocol that XML features are supported GDB then queries for xml blobs using qXfer:features:read:xxx.xml.

Reimplemented from gem5::BaseRemoteGDB.

Definition at line 155 of file remote_gdb.hh.

◆ checkBpLen()

bool gem5::RiscvISA::RemoteGDB::checkBpLen ( size_t  len)
inlineoverrideprotectedvirtual

Reimplemented from gem5::BaseRemoteGDB.

Definition at line 59 of file remote_gdb.hh.

References gem5::ArmISA::len.

◆ gdbRegs()

BaseGdbRegCache* gem5::RiscvISA::RemoteGDB::gdbRegs ( )
overridevirtual

Implements gem5::BaseRemoteGDB.

◆ getXferFeaturesRead()

bool gem5::RiscvISA::RemoteGDB::getXferFeaturesRead ( const std::string &  annex,
std::string &  output 
)
overridevirtual

Reply to qXfer:features:read:xxx.xml qeuries.

Reimplemented from gem5::BaseRemoteGDB.

Member Data Documentation

◆ NumCSRs

const int gem5::RiscvISA::RemoteGDB::NumCSRs = 4096
staticprotected

Definition at line 55 of file remote_gdb.hh.

◆ NumGDBRegs

const int gem5::RiscvISA::RemoteGDB::NumGDBRegs = 4162
staticprotected

Definition at line 54 of file remote_gdb.hh.

◆ regCache

RiscvGdbRegCache gem5::RiscvISA::RemoteGDB::regCache
protected

Definition at line 145 of file remote_gdb.hh.


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

Generated on Tue Sep 21 2021 12:32:01 for gem5 by doxygen 1.8.17