gem5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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_impl.hh"
#include "sim/global_event.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 breakAtKernelFunction (const char *funcName)
 Cause the simulator to execute a breakpoint when the given kernel function is reached. 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

void breakAtKernelFunction ( const char *  funcName)

Cause the simulator to execute a breakpoint when the given kernel function is reached.

Parameters
funcNamethe name of the kernel function at which to break

Definition at line 100 of file debug.cc.

References System::addKernelFuncEvent(), and System::systemList.

void eventqDump ( )

Dump all the events currently on the event queue.

Definition at line 119 of file debug.cc.

References ArmISA::i, mainEventQueue, and numMainEventQueues.

int getRemoteGDBPort ( )

Definition at line 129 of file debug.cc.

References remote_gdb_base_port.

Referenced by System::registerThreadContext().

void schedBreak ( Tick  when)

Cause the simulator to execute a breakpoint.

Parameters
whenthe tick to break

Definition at line 87 of file debug.cc.

References warn.

Referenced by pybind_init_debug(), and 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 94 of file debug.cc.

References curTick(), and schedBreak().

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

void setRemoteGDBPort ( int  port)

Definition at line 137 of file debug.cc.

References remote_gdb_base_port.

Referenced by pybind_init_debug().

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 111 of file debug.cc.

References curTick(), and exitSimLoop().

Variable Documentation

int remote_gdb_base_port = 7000

Definition at line 126 of file debug.cc.

Referenced by getRemoteGDBPort(), and setRemoteGDBPort().


Generated on Fri Jun 9 2017 13:03:56 for gem5 by doxygen 1.8.6