changeset b6c6c55b59ac in /z/repo/gem5
details: http://repo.gem5.org/gem5?cmd=changeset;node=b6c6c55b59ac
description:
        sim: Add relative break scheduling

        Add schedRelBreak() function, executable within a debugger, that sets a
        breakpoint by relative rather than absolute tick.

diffstat:

 src/sim/debug.cc |  6 ++++++
 src/sim/debug.hh |  7 +++++++
 2 files changed, 13 insertions(+), 0 deletions(-)

diffs (33 lines):

diff -r c81401cf5cc2 -r b6c6c55b59ac src/sim/debug.cc
--- a/src/sim/debug.cc  Tue Oct 06 17:26:50 2015 -0700
+++ b/src/sim/debug.cc  Fri Oct 09 14:27:09 2015 -0500
@@ -90,6 +90,12 @@
 }
 
 void
+schedRelBreak(Tick delta)
+{
+    schedBreak(curTick() + delta);
+}
+
+void
 breakAtKernelFunction(const char* funcName)
 {
     System* curSystem = System::systemList[0];
diff -r c81401cf5cc2 -r b6c6c55b59ac src/sim/debug.hh
--- a/src/sim/debug.hh  Tue Oct 06 17:26:50 2015 -0700
+++ b/src/sim/debug.hh  Fri Oct 09 14:27:09 2015 -0500
@@ -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
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to