gem5 [DEVELOP-FOR-25.0]
Loading...
Searching...
No Matches
The RemoteGDB API.

These methods relate to the BaseRemoteGDB and BaseGdbRegCache interfaces. More...

Functions

virtual char * gem5::BaseGdbRegCache::data ()=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()

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

◆ attach()

void gem5::BaseRemoteGDB::attach ( int fd)

◆ BaseGdbRegCache()

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

Definition at line 134 of file remote_gdb.hh.

References gem5::MipsISA::g, and gdb.

◆ BaseRemoteGDB()

◆ connect()

void gem5::BaseRemoteGDB::connect ( )

◆ data()

◆ detach()

void gem5::BaseRemoteGDB::detach ( )

◆ getRegs()

◆ hostSocket()

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

Definition at line 448 of file remote_gdb.cc.

References listener, and panic_if.

◆ isAttached()

bool gem5::BaseRemoteGDB::isAttached ( )
inline

Definition at line 168 of file remote_gdb.hh.

References attached.

Referenced by attach(), and connect().

◆ listen()

void gem5::BaseRemoteGDB::listen ( )

◆ name() [1/2]

◆ name() [2/2]

std::string gem5::BaseRemoteGDB::name ( )

Definition at line 409 of file remote_gdb.cc.

References sys.

Referenced by BaseRemoteGDB().

◆ replaceThreadContext()

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

References BaseRemoteGDB().

◆ scheduleTrapEvent()

void gem5::BaseRemoteGDB::scheduleTrapEvent ( ContextID id,
GDBSignal type,
int delta,
std::string stopReason )

Definition at line 973 of file remote_gdb.cc.

References gem5::ArmISA::id, panic_if, scheduleInstCommitEvent(), threads, and trapEvent.

Referenced by cmdSetThread(), and incomingData().

◆ selectThreadContext()

bool gem5::BaseRemoteGDB::selectThreadContext ( ContextID id)

Definition at line 529 of file remote_gdb.cc.

References regCachePtr, tc, and threads.

Referenced by addThreadContext(), cmdSetThread(), and trap().

◆ sendMessage()

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

Definition at line 583 of file remote_gdb.cc.

References attached, DPRINTF, and sendOPacket().

◆ setRegs()

◆ size()

◆ trap()

void gem5::BaseRemoteGDB::trap ( ContextID id,
GDBSignal sig,
const std::string & stopReason = "" )

◆ ~BaseRemoteGDB()

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

References fd.


Generated on Mon May 26 2025 09:19:17 for gem5 by doxygen 1.13.2