summaryrefslogtreecommitdiff
path: root/src/sim/debug.hh
diff options
context:
space:
mode:
authorDylan Johnson <Dylan.Johnson@ARM.com>2015-10-09 14:27:09 -0500
committerDylan Johnson <Dylan.Johnson@ARM.com>2015-10-09 14:27:09 -0500
commit7624fc1fb461f1dd127763521d85f63e81617d71 (patch)
tree6f05f6cfcbeeea97ec3af35c21f04e14382b49c5 /src/sim/debug.hh
parent90c279e4b1ddb87780b667ccec6bda64e6a77b96 (diff)
downloadgem5-7624fc1fb461f1dd127763521d85f63e81617d71.tar.xz
sim: Add relative break scheduling
Add schedRelBreak() function, executable within a debugger, that sets a breakpoint by relative rather than absolute tick.
Diffstat (limited to 'src/sim/debug.hh')
-rw-r--r--src/sim/debug.hh7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/sim/debug.hh b/src/sim/debug.hh
index 0d324698d..8587325e1 100644
--- 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