summaryrefslogtreecommitdiff
path: root/src/sim/sim_object.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/sim/sim_object.hh')
-rw-r--r--src/sim/sim_object.hh7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/sim/sim_object.hh b/src/sim/sim_object.hh
index b70f1d5d3..20a35a32b 100644
--- a/src/sim/sim_object.hh
+++ b/src/sim/sim_object.hh
@@ -131,6 +131,13 @@ class SimObject : public Serializable, protected StartupCallback
static void debugObjectBreak(const std::string &objs);
#endif
+ /**
+ * Find the SimObject with the given name and return a pointer to
+ * it. Priarily used for interactive debugging. Argument is
+ * char* rather than std::string to make it callable from gdb.
+ */
+ static SimObject *find(const char *name);
+
public:
void recordEvent(const std::string &stat);
};