gem5  v20.1.0.0
Classes | Functions | Variables
debug.cc File Reference
#include "sim/debug.hh"
#include <string>
#include <vector>
#include "base/debug.hh"
#include "cpu/pc_event.hh"
#include "sim/eventq.hh"
#include "sim/global_event.hh"
#include "sim/kernel_workload.hh"
#include "sim/sim_events.hh"
#include "sim/sim_exit.hh"
#include "sim/system.hh"

Go to the source code of this file.

Classes

struct  DebugBreakEvent
 

Functions

void schedBreak (Tick when)
 Cause the simulator to execute a breakpoint. More...
 
void schedRelBreak (Tick delta)
 Cause the simulator to execute a breakpoint relative to the current tick. More...
 
void takeCheckpoint (Tick when)
 Function to cause the simulator to take a checkpoint from the debugger. More...
 
void eventqDump ()
 Dump all the events currently on the event queue. More...
 
int getRemoteGDBPort ()
 
void setRemoteGDBPort (int port)
 

Variables

int remote_gdb_base_port = 7000
 

Function Documentation

◆ eventqDump()

void eventqDump ( )

Dump all the events currently on the event queue.

Definition at line 109 of file debug.cc.

References ArmISA::i, mainEventQueue, and numMainEventQueues.

◆ getRemoteGDBPort()

int getRemoteGDBPort ( )

Definition at line 119 of file debug.cc.

References remote_gdb_base_port.

Referenced by System::Threads::insert().

◆ schedBreak()

void schedBreak ( Tick  when)

Cause the simulator to execute a breakpoint.

Parameters
whenthe tick to break

Definition at line 85 of file debug.cc.

References warn.

Referenced by pybind_init_debug(), and schedRelBreak().

◆ schedRelBreak()

void schedRelBreak ( Tick  delta)

Cause the simulator to execute a breakpoint relative to the current tick.

Parameters
deltathe number of ticks to execute until breaking

Definition at line 92 of file debug.cc.

References curTick(), and schedBreak().

Referenced by RiscvISA::BreakpointFault::invokeSE().

◆ setRemoteGDBPort()

void setRemoteGDBPort ( int  port)

Definition at line 127 of file debug.cc.

References remote_gdb_base_port.

Referenced by pybind_init_debug().

◆ takeCheckpoint()

void takeCheckpoint ( Tick  when)

Function to cause the simulator to take a checkpoint from the debugger.

Cause the simulator to return to python to create a checkpoint.

Definition at line 101 of file debug.cc.

References curTick(), and exitSimLoop().

Variable Documentation

◆ remote_gdb_base_port

int remote_gdb_base_port = 7000

Definition at line 116 of file debug.cc.

Referenced by getRemoteGDBPort(), and setRemoteGDBPort().


Generated on Wed Sep 30 2020 14:02:18 for gem5 by doxygen 1.8.17