diff --git a/src/sim/debug.hh b/src/sim/debug.hh --- a/src/sim/debug.hh +++ b/src/sim/debug.hh @@ -45,6 +45,13 @@ void schedBreak(Tick when); /** + * Cause the simulator to execute a breakpoint + * relative to the current tick. + * @param delta the number of ticks to execute until breaking + */ +void schedRelBreak(Tick delta); + +/** * Cause the simulator to execute a breakpoint when * the given kernel function is reached * @param funcName the name of the kernel function at which to break # Node ID f56d5e3e951d5b42bee4c2e0e1a849e475fc5c4f # Parent bc07f37641295bfb302950805393872d00ce68ee diff --git a/src/sim/debug.cc b/src/sim/debug.cc --- a/src/sim/debug.cc +++ b/src/sim/debug.cc @@ -90,6 +90,13 @@ } void +schedRelBreak(Tick delta) +{ + new DebugBreakEvent(curTick() + delta); + warn("need to stop all queues"); +} + +void breakAtKernelFunction(const char* funcName) { System* curSystem = System::systemList[0];