summaryrefslogtreecommitdiff
path: root/util/statetrace/tracechild.hh
diff options
context:
space:
mode:
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();