summaryrefslogtreecommitdiff
path: root/util/statetrace/tracechild.hh
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2011-03-02 22:53:10 -0800
committerGabe Black <gblack@eecs.umich.edu>2011-03-02 22:53:10 -0800
commit3df970f0de9790c0805ec76759a9c36a0fb10bac (patch)
tree8bdc5bcaa636386bffcaca4b580ab707a6056400 /util/statetrace/tracechild.hh
parent07b507d2785f9d7696f980d6556e362392f92fda (diff)
downloadgem5-3df970f0de9790c0805ec76759a9c36a0fb10bac.tar.xz
Statetrace: Clean up style.
Diffstat (limited to 'util/statetrace/tracechild.hh')
-rw-r--r--util/statetrace/tracechild.hh53
1 files changed, 27 insertions, 26 deletions
diff --git a/util/statetrace/tracechild.hh b/util/statetrace/tracechild.hh
index 24712f816..247714111 100644
--- a/util/statetrace/tracechild.hh
+++ b/util/statetrace/tracechild.hh
@@ -35,32 +35,33 @@
class TraceChild : public RegState
{
-protected:
- int pid;
- uint64_t instructions;
- bool tracing;
-public:
- TraceChild() : tracing(false), instructions(0)
- {;}
- virtual bool sendState(int socket) = 0;
- virtual bool startTracing(const char * pathToFile,
- char * const argv[]);
- virtual bool stopTracing();
- virtual bool step();
- virtual uint64_t getPC() = 0;
- virtual uint64_t getSP() = 0;
- virtual std::ostream & outputStartState(std::ostream & os) = 0;
- int getPid()
- {
- return pid;
- }
- bool isTracing()
- {
- return tracing;
- }
-protected:
- bool ptraceSingleStep();
- bool doWait();
+ protected:
+ int pid;
+ uint64_t instructions;
+ bool tracing;
+ public:
+ TraceChild() : tracing(false), instructions(0)
+ {;}
+ virtual bool sendState(int socket) = 0;
+ virtual bool startTracing(const char * pathToFile, char * const argv[]);
+ virtual bool stopTracing();
+ virtual bool step();
+ virtual uint64_t getPC() = 0;
+ virtual uint64_t getSP() = 0;
+ virtual std::ostream & outputStartState(std::ostream & os) = 0;
+ int
+ getPid()
+ {
+ return pid;
+ }
+ bool
+ isTracing()
+ {
+ return tracing;
+ }
+ protected:
+ bool ptraceSingleStep();
+ bool doWait();
};
TraceChild * genTraceChild();