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

#include <remote_gdb.hh>

Inheritance diagram for gem5::ArmISA::RemoteGDB:
gem5::BaseRemoteGDB

Classes

class  AArch32GdbRegCache
 
class  AArch64GdbRegCache
 

Public Member Functions

 RemoteGDB (System *_system, int _port)
 
BaseGdbRegCachegdbRegs ()
 
std::vector< std::string > availableFeatures () const
 
bool getXferFeaturesRead (const std::string &annex, std::string &output)
 Get an XML target description. 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)
 
- 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
 
virtual bool checkBpLen (size_t len)
 

Protected Attributes

AArch32GdbRegCache regCache32
 
AArch64GdbRegCache regCache64
 

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 63 of file remote_gdb.hh.

Constructor & Destructor Documentation

◆ RemoteGDB()

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

Definition at line 190 of file remote_gdb.cc.

Member Function Documentation

◆ acc()

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

◆ availableFeatures()

std::vector<std::string> gem5::ArmISA::RemoteGDB::availableFeatures ( ) const
inlinevirtual

Reimplemented from gem5::BaseRemoteGDB.

Definition at line 124 of file remote_gdb.hh.

◆ gdbRegs()

BaseGdbRegCache * gem5::RemoteGDB::gdbRegs ( )
virtual

◆ getXferFeaturesRead()

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

Get an XML target description.

Parameters
[in]annexthe XML filename
[out]outputset to the decoded XML
Returns
true if the given annex was found

Blobs e.g. gdb_xml_riscv_target are generated by adding GdbXml(<xml_file_name>, <blob_name>) to src/arch/riscv/Sconscript.

Import using #include blobs/<blob_name>.hh

Reimplemented from gem5::BaseRemoteGDB.

Definition at line 331 of file remote_gdb.cc.

References gem5::BaseRemoteGDB::context(), GDB_XML, gem5::ArmISA::inAArch64(), and gem5::output().

Member Data Documentation

◆ regCache32

AArch32GdbRegCache gem5::ArmISA::RemoteGDB::regCache32
protected

Definition at line 117 of file remote_gdb.hh.

Referenced by gdbRegs().

◆ regCache64

AArch64GdbRegCache gem5::ArmISA::RemoteGDB::regCache64
protected

Definition at line 118 of file remote_gdb.hh.

Referenced by gdbRegs().


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

Generated on Tue Sep 21 2021 12:28:37 for gem5 by doxygen 1.8.17