summaryrefslogtreecommitdiff
path: root/src/sim/debug.cc
diff options
context:
space:
mode:
authorNathan Binkert <binkertn@umich.edu>2006-11-13 12:20:08 -0800
committerNathan Binkert <binkertn@umich.edu>2006-11-13 12:20:08 -0800
commitafed455e777348596db9ff9786d6dae03a956c89 (patch)
treee49f414f9c4e4d31c5c47922b9818b098c7ad038 /src/sim/debug.cc
parent2370e638cec993a2f676c7e5997f4223c995be29 (diff)
downloadgem5-afed455e777348596db9ff9786d6dae03a956c89.tar.xz
Expose debugBreakCycle through swig and get rid of
the Debug param context --HG-- extra : convert_revision : 40e9dcfa9faedbe0c90a43f908f20a7c14ded6a4
Diffstat (limited to 'src/sim/debug.cc')
-rw-r--r--src/sim/debug.cc36
1 files changed, 4 insertions, 32 deletions
diff --git a/src/sim/debug.cc b/src/sim/debug.cc
index be9566836..84ab1074d 100644
--- a/src/sim/debug.cc
+++ b/src/sim/debug.cc
@@ -94,45 +94,17 @@ DebugBreakEvent::description()
}
//
-// Parameter context for global debug options
-//
-class DebugContext : public ParamContext
-{
- public:
- DebugContext(const string &_iniSection)
- : ParamContext(_iniSection) {}
- void checkParams();
-};
-
-DebugContext debugParams("debug");
-
-VectorParam<Tick> break_cycles(&debugParams, "break_cycles",
- "cycle(s) to create breakpoint events");
-
-void
-DebugContext::checkParams()
-{
- if (break_cycles.isValid()) {
- vector<Tick> &cycles = break_cycles;
-
- vector<Tick>::iterator i = cycles.begin();
- vector<Tick>::iterator end = cycles.end();
-
- for (; i < end; ++i)
- new DebugBreakEvent(&mainEventQueue, *i);
- }
-}
-
-//
// handy function to schedule DebugBreakEvent on main event queue
// (callable from debugger)
//
-void sched_break_cycle(Tick when)
+void
+schedBreakCycle(Tick when)
{
new DebugBreakEvent(&mainEventQueue, when);
}
-void eventq_dump()
+void
+eventqDump()
{
mainEventQueue.dump();
}