summaryrefslogtreecommitdiff
path: root/src/sim/debug.cc
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.cc
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.cc')
-rw-r--r--src/sim/debug.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/sim/debug.cc b/src/sim/debug.cc
index b3d73eff7..9fab75108 100644
--- a/src/sim/debug.cc
+++ b/src/sim/debug.cc
@@ -90,6 +90,12 @@ schedBreak(Tick when)
}
void
+schedRelBreak(Tick delta)
+{
+ schedBreak(curTick() + delta);
+}
+
+void
breakAtKernelFunction(const char* funcName)
{
System* curSystem = System::systemList[0];