X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fsim%2Fdebug.hh;h=fc9f0f55eeb0fb007c8863b180afa25469f39060;hb=072f78471d11c31b6009beb572296f704912d0f7;hp=79792234be579e89616617fbb277bb09a905ba6d;hpb=984c2a4ff677803ff7687a178f1dceb1f0204c30;p=gem5.git diff --git a/src/sim/debug.hh b/src/sim/debug.hh index 79792234b..fc9f0f55e 100644 --- a/src/sim/debug.hh +++ b/src/sim/debug.hh @@ -28,9 +28,33 @@ * Authors: Nathan Binkert */ -#ifndef __DEBUG_HH__ -#define __DEBUG_HH__ +#ifndef __SIM_DEBUG_HH__ +#define __SIM_DEBUG_HH__ -void debug_break(); +#include "base/types.hh" -#endif // __DEBUG_HH__ +/** @file This file provides the definitions for some useful debugging + * functions. These are intended to be called from a debugger such as + * gdb. + */ + + +/** Cause the simulator to execute a breakpoint + * @param when the tick to break + */ +void schedBreak(Tick when); + +/** Cause the simulator to return to python to create a checkpoint + * @param when the cycle to break + */ +void takeCheckpoint(Tick when); + +/** Dump all the events currently on the event queue + */ +void eventqDump(); + +int getRemoteGDBPort(); +// Remote gdb base port. 0 disables remote gdb. +void setRemoteGDBPort(int port); + +#endif // __SIM_DEBUG_HH__