Fixed problem in DeviceSettings::strParam, returned wrong string
[avr-sim.git] / src / TraceAnalyzer.h
blob3d1818e8d6b248751c4c81352fdd0482925ecc1a
1 #ifndef AVR_TRACEANALYZER_H
2 #define AVR_TRACEANALYZER_H
4 #include "Analyzer.h"
5 #include "Trace.h"
7 namespace avr {
9 /**
10 * @author Tom Haber
11 * @date May 17, 2008
12 * @brief Tracing Analyzer
14 * Provides a trace log with some of the Core state changes.
15 * This allows the user to review all instructions executed
16 * by the program and their effect on the registers at a later time.
18 class TraceAnalyzer : public Analyzer {
19 public:
20 TraceAnalyzer(Core *core, const char *filname);
21 ~TraceAnalyzer();
23 public:
24 virtual void reset(unsigned int type);
25 virtual void trace(dword address);
26 virtual void step(lword ticks);
28 public:
29 virtual void readRegister(unsigned int r, byte val);
30 virtual void writeRegister(unsigned int r, byte val);
31 virtual void interrupt(unsigned int vector, unsigned int addr);
33 private:
34 Trace tracer;
39 #endif /*AVR_TRACEANALYZER_H*/