gem5  v20.1.0.0
Classes | Public Member Functions | Private Member Functions | Private Attributes | List of all members
X86ISA::RemoteGDB::AMD64GdbRegCache Class Reference

#include <remote_gdb.hh>

Inheritance diagram for X86ISA::RemoteGDB::AMD64GdbRegCache:
BaseGdbRegCache

Classes

struct  M5_ATTR_PACKED
 

Public Member Functions

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

Private Member Functions

 BaseGdbRegCache (BaseRemoteGDB *g)
 

Private Attributes

struct X86ISA::RemoteGDB::AMD64GdbRegCache::M5_ATTR_PACKED r
 

Additional Inherited Members

- Protected Attributes inherited from BaseGdbRegCache
BaseRemoteGDBgdb
 

Detailed Description

Definition at line 92 of file remote_gdb.hh.

Member Function Documentation

◆ BaseGdbRegCache()

BaseGdbRegCache::BaseGdbRegCache
inlineprivate

Definition at line 119 of file remote_gdb.hh.

◆ data()

char* X86ISA::RemoteGDB::AMD64GdbRegCache::data ( ) const
inlinevirtual

Return the pointer to the raw bytes buffer containing the register values.

Each byte of this buffer is literally encoded as two hex digits in the g or G RSP packet.

Implements BaseGdbRegCache.

Definition at line 128 of file remote_gdb.hh.

References r.

◆ getRegs()

void RemoteGDB::AMD64GdbRegCache::getRegs ( ThreadContext )
virtual

Fill the raw buffer from the registers in the ThreadContext.

Implements BaseGdbRegCache.

Definition at line 104 of file remote_gdb.cc.

References BaseRemoteGDB::context(), X86ISA::RemoteGDB::AMD64GdbRegCache::M5_ATTR_PACKED::cs, DPRINTF, X86ISA::RemoteGDB::AMD64GdbRegCache::M5_ATTR_PACKED::ds, X86ISA::RemoteGDB::AMD64GdbRegCache::M5_ATTR_PACKED::eflags, X86ISA::RemoteGDB::AMD64GdbRegCache::M5_ATTR_PACKED::es, X86ISA::RemoteGDB::AMD64GdbRegCache::M5_ATTR_PACKED::fs, X86ISA::RemoteGDB::AMD64GdbRegCache::M5_ATTR_PACKED::gs, ArmISA::INTREG_R10, ArmISA::INTREG_R11, ArmISA::INTREG_R12, ArmISA::INTREG_R13, ArmISA::INTREG_R14, ArmISA::INTREG_R15, ArmISA::INTREG_R8, ArmISA::INTREG_R9, X86ISA::MISCREG_CS, X86ISA::MISCREG_DS, X86ISA::MISCREG_ES, X86ISA::MISCREG_FS, X86ISA::MISCREG_GS, X86ISA::MISCREG_RFLAGS, X86ISA::MISCREG_SS, ThreadContext::pcState(), r, X86ISA::RemoteGDB::AMD64GdbRegCache::M5_ATTR_PACKED::r10, X86ISA::RemoteGDB::AMD64GdbRegCache::M5_ATTR_PACKED::r11, X86ISA::RemoteGDB::AMD64GdbRegCache::M5_ATTR_PACKED::r12, X86ISA::RemoteGDB::AMD64GdbRegCache::M5_ATTR_PACKED::r13, X86ISA::RemoteGDB::AMD64GdbRegCache::M5_ATTR_PACKED::r14, X86ISA::RemoteGDB::AMD64GdbRegCache::M5_ATTR_PACKED::r15, X86ISA::RemoteGDB::AMD64GdbRegCache::M5_ATTR_PACKED::r8, X86ISA::RemoteGDB::AMD64GdbRegCache::M5_ATTR_PACKED::r9, X86ISA::RemoteGDB::AMD64GdbRegCache::M5_ATTR_PACKED::rax, X86ISA::RemoteGDB::AMD64GdbRegCache::M5_ATTR_PACKED::rbp, X86ISA::RemoteGDB::AMD64GdbRegCache::M5_ATTR_PACKED::rbx, X86ISA::RemoteGDB::AMD64GdbRegCache::M5_ATTR_PACKED::rcx, X86ISA::RemoteGDB::AMD64GdbRegCache::M5_ATTR_PACKED::rdi, X86ISA::RemoteGDB::AMD64GdbRegCache::M5_ATTR_PACKED::rdx, ThreadContext::readIntReg(), ThreadContext::readMiscRegNoEffect(), X86ISA::RemoteGDB::AMD64GdbRegCache::M5_ATTR_PACKED::rip, X86ISA::RemoteGDB::AMD64GdbRegCache::M5_ATTR_PACKED::rsi, X86ISA::RemoteGDB::AMD64GdbRegCache::M5_ATTR_PACKED::rsp, and X86ISA::RemoteGDB::AMD64GdbRegCache::M5_ATTR_PACKED::ss.

◆ name()

const std::string X86ISA::RemoteGDB::AMD64GdbRegCache::name ( ) const
inlinevirtual

Return the name to use in places like DPRINTF.

Having each concrete superclass redefine this member is useful in situations where the class of the regCache can change on the fly.

Implements BaseGdbRegCache.

Definition at line 133 of file remote_gdb.hh.

References BaseGdbRegCache::gdb, and BaseRemoteGDB::name().

◆ setRegs()

void RemoteGDB::AMD64GdbRegCache::setRegs ( ThreadContext ) const
virtual

◆ size()

size_t X86ISA::RemoteGDB::AMD64GdbRegCache::size ( ) const
inlinevirtual

Return the size of the raw buffer, in bytes (i.e., half of the number of digits in the g/G packet).

Implements BaseGdbRegCache.

Definition at line 129 of file remote_gdb.hh.

References r.

Member Data Documentation

◆ r

struct X86ISA::RemoteGDB::AMD64GdbRegCache::M5_ATTR_PACKED X86ISA::RemoteGDB::AMD64GdbRegCache::r
private

Referenced by data(), getRegs(), and size().


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

Generated on Wed Sep 30 2020 14:03:15 for gem5 by doxygen 1.8.17