gem5  v20.0.0.2
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Protected Attributes | List of all members
BaseGdbRegCache Class Referenceabstract

Concrete subclasses of this abstract class represent how the register values are transmitted on the wire. More...

#include <remote_gdb.hh>

Inheritance diagram for BaseGdbRegCache:
ArmISA::RemoteGDB::AArch32GdbRegCache ArmISA::RemoteGDB::AArch64GdbRegCache MipsISA::RemoteGDB::MipsGdbRegCache PowerISA::RemoteGDB::PowerGdbRegCache RiscvISA::RemoteGDB::RiscvGdbRegCache SparcISA::RemoteGDB::SPARC64GdbRegCache SparcISA::RemoteGDB::SPARCGdbRegCache X86ISA::RemoteGDB::AMD64GdbRegCache X86ISA::RemoteGDB::X86GdbRegCache

Public Member Functions

virtual char * data () const =0
 Return the pointer to the raw bytes buffer containing the register values. More...
 
virtual size_t size () const =0
 Return the size of the raw buffer, in bytes (i.e., half of the number of digits in the g/G packet). More...
 
virtual void getRegs (ThreadContext *)=0
 Fill the raw buffer from the registers in the ThreadContext. More...
 
virtual void setRegs (ThreadContext *) const =0
 Set the ThreadContext's registers from the values in the raw buffer. More...
 
virtual const std::string name () const =0
 Return the name to use in places like DPRINTF. More...
 
 BaseGdbRegCache (BaseRemoteGDB *g)
 
virtual ~BaseGdbRegCache ()
 

Protected Attributes

BaseRemoteGDBgdb
 

Detailed Description

Concrete subclasses of this abstract class represent how the register values are transmitted on the wire.

Usually each architecture should define one subclass, but there can be more if there is more than one possible wire format. For example, ARM defines both AArch32GdbRegCache and AArch64GdbRegCache.

Definition at line 70 of file remote_gdb.hh.

Constructor & Destructor Documentation

◆ BaseGdbRegCache()

BaseGdbRegCache::BaseGdbRegCache ( BaseRemoteGDB g)
inline

Definition at line 106 of file remote_gdb.hh.

◆ ~BaseGdbRegCache()

virtual BaseGdbRegCache::~BaseGdbRegCache ( )
inlinevirtual

Definition at line 108 of file remote_gdb.hh.

Member Function Documentation

◆ data()

virtual char* BaseGdbRegCache::data ( ) const
pure virtual

◆ getRegs()

virtual void BaseGdbRegCache::getRegs ( ThreadContext )
pure virtual

◆ name()

virtual const std::string BaseGdbRegCache::name ( ) const
pure virtual

◆ setRegs()

virtual void BaseGdbRegCache::setRegs ( ThreadContext ) const
pure virtual

◆ size()

virtual size_t BaseGdbRegCache::size ( ) const
pure virtual

Member Data Documentation

◆ gdb

BaseRemoteGDB* BaseGdbRegCache::gdb
protected

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

Generated on Mon Jun 8 2020 15:45:19 for gem5 by doxygen 1.8.13