|
gem5
v21.0.1.0
|
#include <remote_gdb.hh>
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 ArmISA::RemoteGDB::AArch32GdbRegCache::M5_ATTR_PACKED | r |
Additional Inherited Members | |
Protected Attributes inherited from BaseGdbRegCache | |
| BaseRemoteGDB * | gdb |
Definition at line 65 of file remote_gdb.hh.
|
inlineprivate |
Definition at line 121 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 BaseGdbRegCache.
Definition at line 76 of file remote_gdb.hh.
References r.
|
virtual |
Fill the raw buffer from the registers in the ThreadContext.
Implements BaseGdbRegCache.
Definition at line 268 of file remote_gdb.cc.
References BaseRemoteGDB::context(), DPRINTF, ArmISA::i, ArmISA::INTREG_LR, ArmISA::INTREG_R0, ArmISA::INTREG_R1, ArmISA::INTREG_R10, ArmISA::INTREG_R11, ArmISA::INTREG_R12, ArmISA::INTREG_R2, ArmISA::INTREG_R3, ArmISA::INTREG_R4, ArmISA::INTREG_R5, ArmISA::INTREG_R6, ArmISA::INTREG_R7, ArmISA::INTREG_R8, ArmISA::INTREG_R9, ArmISA::INTREG_SP, ArmISA::MISCREG_CPSR, ArmISA::MISCREG_FPSCR, ThreadContext::pcState(), MipsISA::r, ThreadContext::readIntReg(), and ThreadContext::readMiscRegNoEffect().
|
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 81 of file remote_gdb.hh.
References BaseGdbRegCache::gdb, and BaseRemoteGDB::name().
|
virtual |
Set the ThreadContext's registers from the values in the raw buffer.
Implements BaseGdbRegCache.
Definition at line 298 of file remote_gdb.cc.
References BaseRemoteGDB::context(), DPRINTF, ArmISA::INTREG_LR, ArmISA::INTREG_R0, ArmISA::INTREG_R1, ArmISA::INTREG_R10, ArmISA::INTREG_R11, ArmISA::INTREG_R12, ArmISA::INTREG_R2, ArmISA::INTREG_R3, ArmISA::INTREG_R4, ArmISA::INTREG_R5, ArmISA::INTREG_R6, ArmISA::INTREG_R7, ArmISA::INTREG_R8, ArmISA::INTREG_R9, ArmISA::INTREG_SP, ArmISA::MISCREG_CPSR, ArmISA::MISCREG_FPSCR, ThreadContext::pcState(), MipsISA::r, ThreadContext::setIntReg(), ThreadContext::setMiscReg(), and ThreadContext::setMiscRegNoEffect().
|
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 77 of file remote_gdb.hh.
References r.
|
private |