Allow gdb to request reads on invalid memory, reply with 0's
[avr-sim.git] / src / TraceAnalyzer.h
blobf58710320ccc29df023767f1d8c5f522cb420bf3
1 #ifndef AVR_TRACEANALYZER_H
2 #define AVR_TRACEANALYZER_H
4 #include "Analyzer.h"
6 namespace avr {
8 /**
9 * @author Tom Haber
10 * @date May 17, 2008
11 * @brief Tracing Analyzer
13 * Provides a trace log with some of the Core state changes.
14 * This allows the user to review all instructions executed
15 * by the program and their effect on the registers at a later time.
17 class TraceAnalyzer : public Analyzer {
18 public:
19 TraceAnalyzer(Core *core, const char *filname);
20 ~TraceAnalyzer();
22 public:
23 virtual void reset(unsigned int type);
24 virtual void trace(dword address);
25 virtual void step(lword ticks);
27 public:
28 virtual void readRegister(unsigned int r, byte val);
29 virtual void writeRegister(unsigned int r, byte val);
30 virtual void interrupt(unsigned int vector, unsigned int addr);
35 #endif /*AVR_TRACEANALYZER_H*/