gem5 v24.0.0.0
Loading...
Searching...
No Matches
The RemoteGDB API.

Functions

virtual char * gem5::BaseGdbRegCache::data () const =0
 Return the pointer to the raw bytes buffer containing the register values.
 
virtual size_t gem5::BaseGdbRegCache::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).
 
virtual void gem5::BaseGdbRegCache::getRegs (ThreadContext *)=0
 Fill the raw buffer from the registers in the ThreadContext.
 
virtual void gem5::BaseGdbRegCache::setRegs (ThreadContext *) const =0
 Set the ThreadContext's registers from the values in the raw buffer.
 
virtual const std::string gem5::BaseGdbRegCache::name () const =0
 Return the name to use in places like DPRINTF.
 
 gem5::BaseGdbRegCache::BaseGdbRegCache (BaseRemoteGDB *g)
 
 gem5::BaseRemoteGDB::BaseRemoteGDB (System *system, ListenSocketConfig _listen_config)
 Interface to other parts of the simulator.
 
virtual gem5::BaseRemoteGDB::~BaseRemoteGDB ()
 
std::string gem5::BaseRemoteGDB::name ()
 
void gem5::BaseRemoteGDB::listen ()
 
void gem5::BaseRemoteGDB::connect ()
 
const ListenSocketgem5::BaseRemoteGDB::hostSocket () const
 
void gem5::BaseRemoteGDB::attach (int fd)
 
void gem5::BaseRemoteGDB::detach ()
 
bool gem5::BaseRemoteGDB::isAttached ()
 
void gem5::BaseRemoteGDB::addThreadContext (ThreadContext *_tc)
 
void gem5::BaseRemoteGDB::replaceThreadContext (ThreadContext *_tc)
 
bool gem5::BaseRemoteGDB::selectThreadContext (ContextID id)
 
void gem5::BaseRemoteGDB::trap (ContextID id, GDBSignal sig, const std::string &stopReason="")
 
bool gem5::BaseRemoteGDB::sendMessage (std::string message)
 
void gem5::BaseRemoteGDB::scheduleTrapEvent (ContextID id, GDBSignal type, int delta, std::string stopReason)
 

Detailed Description

These methods relate to the BaseRemoteGDB and BaseGdbRegCache interfaces.

Function Documentation

◆ addThreadContext()

◆ attach()

◆ BaseGdbRegCache()

gem5::BaseGdbRegCache::BaseGdbRegCache ( BaseRemoteGDB * g)
inline

Definition at line 134 of file remote_gdb.hh.

◆ BaseRemoteGDB()

gem5::BaseRemoteGDB::BaseRemoteGDB ( System * system,
ListenSocketConfig _listen_config )

Interface to other parts of the simulator.

Definition at line 393 of file remote_gdb.cc.

References gem5::ListenSocketConfig::build(), gem5::BaseRemoteGDB::listener, and gem5::BaseRemoteGDB::name().

◆ connect()

◆ data()

◆ detach()

◆ getRegs()

◆ hostSocket()

const ListenSocket & gem5::BaseRemoteGDB::hostSocket ( ) const

Definition at line 448 of file remote_gdb.cc.

References gem5::BaseRemoteGDB::listener, and panic_if.

Referenced by gem5::Workload::startup().

◆ isAttached()

bool gem5::BaseRemoteGDB::isAttached ( )
inline

◆ listen()

◆ name() [1/2]

◆ name() [2/2]

◆ replaceThreadContext()

void gem5::BaseRemoteGDB::replaceThreadContext ( ThreadContext * _tc)

◆ scheduleTrapEvent()

◆ selectThreadContext()

◆ sendMessage()

bool gem5::BaseRemoteGDB::sendMessage ( std::string message)

◆ setRegs()

◆ size()

◆ trap()

◆ ~BaseRemoteGDB()

virtual gem5::BaseRemoteGDB::~BaseRemoteGDB ( )
virtual

Generated on Tue Jun 18 2024 16:24:09 for gem5 by doxygen 1.11.0