summaryrefslogtreecommitdiff
path: root/Source/Core/Common/Src/DebugInterface.h
diff options
context:
space:
mode:
authorhrydgard <hrydgard@gmail.com>2009-06-21 08:39:21 +0000
committerhrydgard <hrydgard@gmail.com>2009-06-21 08:39:21 +0000
commitaecaf271f1fe98cba1ebc8228ff9eff3e39e72c5 (patch)
tree4c82001793b35149ae81fcb483f13b22d3b6fa11 /Source/Core/Common/Src/DebugInterface.h
parent80217a6ed718d15c75784090340cd3ddd9432f96 (diff)
New DSP debugger: step one. (not ready yet, but try loading zelda WW and look at the dsp debugger..).
Had to shuffle around quite a lot of code to be able to extract the CodeView into a library nicely so it can be used from both the main dolphin and the LLE plugin... also extracted the symboldb code. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3517 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/Common/Src/DebugInterface.h')
-rw-r--r--Source/Core/Common/Src/DebugInterface.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/Source/Core/Common/Src/DebugInterface.h b/Source/Core/Common/Src/DebugInterface.h
new file mode 100644
index 0000000000..804125b8dd
--- /dev/null
+++ b/Source/Core/Common/Src/DebugInterface.h
@@ -0,0 +1,35 @@
+#ifndef _DEBUGINTERFACE_H
+#define _DEBUGINTERFACE_H
+
+#include <string>
+#include <string.h>
+
+class DebugInterface
+{
+protected:
+ virtual ~DebugInterface() {}
+
+public:
+ virtual void disasm(unsigned int /*address*/, char *dest, int /*max_size*/) {strcpy(dest, "NODEBUGGER");}
+ virtual void getRawMemoryString(int memory, unsigned int /*address*/, char *dest, int /*max_size*/) {strcpy(dest, "NODEBUGGER");}
+ virtual int getInstructionSize(int /*instruction*/) {return 1;}
+ virtual bool isAlive() {return true;}
+ virtual bool isBreakpoint(unsigned int /*address*/) {return false;}
+ virtual void setBreakpoint(unsigned int /*address*/){}
+ virtual void clearBreakpoint(unsigned int /*address*/){}
+ virtual void clearAllBreakpoints() {}
+ virtual void toggleBreakpoint(unsigned int /*address*/){}
+ virtual unsigned int readMemory(unsigned int /*address*/){return 0;}
+ virtual void writeExtraMemory(int memory, unsigned int value, unsigned int /*address*/) {}
+ virtual unsigned int readExtraMemory(int memory, unsigned int address){return 0;}
+ virtual unsigned int readInstruction(unsigned int /*address*/){return 0;}
+ virtual unsigned int getPC() {return 0;}
+ virtual void setPC(unsigned int /*address*/) {}
+ virtual void step() {}
+ virtual void runToBreakpoint() {}
+ virtual void insertBLR(unsigned int /*address*/, unsigned int) {}
+ virtual int getColor(unsigned int /*address*/){return 0xFFFFFFFF;}
+ virtual std::string getDescription(unsigned int /*address*/) = 0;
+};
+
+#endif