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 27a621c13a688779ea38df0e2d2cdaa232295bb6 # 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,12 @@ } void +schedRelBreak(Tick delta) +{ + schedBreak(curTick() + delta); +} + +void breakAtKernelFunction(const char* funcName) { System* curSystem = System::systemList[0];