summaryrefslogtreecommitdiff
path: root/sim/sim_object.hh
diff options
context:
space:
mode:
authorNathan Binkert <binkertn@umich.edu>2004-07-30 10:47:53 -0400
committerNathan Binkert <binkertn@umich.edu>2004-07-30 10:47:53 -0400
commit3711ea7347b02b8e27f5959d453cb8c9a291a753 (patch)
tree1c03f48fd8b32020d60e34f7518f9f77e48431bf /sim/sim_object.hh
parent41988a86b56984e19e9ef45991a39c00fdb3f21e (diff)
downloadgem5-3711ea7347b02b8e27f5959d453cb8c9a291a753.tar.xz
Move all of the object matching code to a shared file so it can
be more easily re-used. This currently uses some cooked up matching function that I wrote a while ago, but should probably be changed to use regular expressions in the future. add doDebugBreak to control breakpoints on a per SimObject basis SConscript: add match base/stats/events.cc: base/trace.cc: Move the object matching code into a separate file so it can be more easily shared base/trace.hh: the object matching code was wrapped up and moved. adapt. sim/sim_object.cc: add the doDebugBreak flag that can be set on a per-SimObject basis. This will be used in the future to control whether or not debug_break() will actually break for a given object. provide a function interface that can be called from the debugger. sim/sim_object.hh: add the doDebugBreak flag that can be set on a per-SimObject basis. This will be used in the future to control whether or not debug_break() will actually break for a given object. --HG-- extra : convert_revision : 6bf7924de63d41f5ba6b80d579efdf26ba265a8f
Diffstat (limited to 'sim/sim_object.hh')
-rw-r--r--sim/sim_object.hh6
1 files changed, 6 insertions, 0 deletions
diff --git a/sim/sim_object.hh b/sim/sim_object.hh
index 770cd558e..dfd70f8ec 100644
--- a/sim/sim_object.hh
+++ b/sim/sim_object.hh
@@ -83,6 +83,12 @@ class SimObject : public Serializable
// static: call nameOut() & serialize() on all SimObjects
static void serializeAll(std::ostream &);
+#ifdef DEBUG
+ public:
+ bool doDebugBreak;
+ static void debugObjectBreak(const std::string &objs);
+#endif
+
public:
bool doRecordEvent;
void recordEvent(const std::string &stat);