2014-02-10 11:54:46 -07:00
|
|
|
#pragma once
|
2008-12-07 21:46:09 -07:00
|
|
|
|
2014-02-19 20:11:52 -07:00
|
|
|
#include <cstring>
|
2008-12-07 21:46:09 -07:00
|
|
|
#include <string>
|
|
|
|
|
|
|
|
class DebugInterface
|
|
|
|
{
|
|
|
|
protected:
|
|
|
|
virtual ~DebugInterface() {}
|
2008-12-20 05:46:14 -07:00
|
|
|
|
2008-12-07 21:46:09 -07:00
|
|
|
public:
|
2014-07-17 19:33:51 -06:00
|
|
|
virtual std::string Disassemble(unsigned int /*address*/) { return "NODEBUGGER"; }
|
2014-03-02 22:39:08 -07:00
|
|
|
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*/){}
|
2014-03-05 18:51:27 -07:00
|
|
|
virtual void ClearAllMemChecks() {}
|
2014-03-02 22:39:08 -07:00
|
|
|
virtual bool IsMemCheck(unsigned int /*address*/) {return false;}
|
|
|
|
virtual void ToggleMemCheck(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 BreakNow() {}
|
|
|
|
virtual void InsertBLR(unsigned int /*address*/, unsigned int /*value*/) {}
|
|
|
|
virtual int GetColor(unsigned int /*address*/){return 0xFFFFFFFF;}
|
|
|
|
virtual std::string GetDescription(unsigned int /*address*/) = 0;
|
2008-12-07 21:46:09 -07:00
|
|
|
};
|