gem5 v24.0.0.0
|
#include <remote_gdb.hh>
Classes | |
struct | GEM5_PACKED |
Public Member Functions | |
char * | data () const |
Return the pointer to the raw bytes buffer containing the register values. | |
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). | |
void | getRegs (ThreadContext *) |
Fill the raw buffer from the registers in the ThreadContext. | |
void | setRegs (ThreadContext *) const |
Set the ThreadContext's registers from the values in the raw buffer. | |
const std::string | name () const |
Return the name to use in places like DPRINTF. | |
Public Member Functions inherited from gem5::BaseGdbRegCache | |
BaseGdbRegCache (BaseRemoteGDB *g) | |
virtual | ~BaseGdbRegCache () |
Private Member Functions | |
BaseGdbRegCache (BaseRemoteGDB *g) | |
Private Attributes | |
struct gem5::PowerISA::RemoteGDB::Power64GdbRegCache::GEM5_PACKED | r |
Additional Inherited Members | |
Protected Attributes inherited from gem5::BaseGdbRegCache | |
BaseRemoteGDB * | gdb |
Definition at line 82 of file remote_gdb.hh.
|
inlineprivate |
Definition at line 134 of file remote_gdb.hh.
|
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 gem5::BaseGdbRegCache.
Definition at line 100 of file remote_gdb.hh.
References r.
|
virtual |
Fill the raw buffer from the registers in the ThreadContext.
Implements gem5::BaseGdbRegCache.
Definition at line 235 of file remote_gdb.cc.
References DPRINTF, gem5::X86ISA::floatRegClass, gem5::ThreadContext::getReg(), gem5::htog(), gem5::ArmISA::i, gem5::PCStateBase::instAddr(), gem5::ArmISA::intRegClass, and gem5::ThreadContext::pcState().
|
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 gem5::BaseGdbRegCache.
Definition at line 105 of file remote_gdb.hh.
References gem5::BaseGdbRegCache::gdb, and gem5::BaseRemoteGDB::name().
|
virtual |
Set the ThreadContext's registers from the values in the raw buffer.
Implements gem5::BaseGdbRegCache.
Definition at line 263 of file remote_gdb.cc.
References gem5::PCStateBase::as(), DPRINTF, gem5::X86ISA::floatRegClass, gem5::ThreadContext::getReg(), gem5::gtoh(), gem5::ArmISA::i, gem5::ArmISA::intRegClass, gem5::MipsISA::pc, gem5::ThreadContext::pcState(), and gem5::ThreadContext::setReg().
|
inlinevirtual |
Return the size of the raw buffer, in bytes (i.e., half of the number of digits in the g/G packet).
Implements gem5::BaseGdbRegCache.
Definition at line 101 of file remote_gdb.hh.
References r.
|
private |