2009-06-07 11:06:40 +00:00
|
|
|
#ifndef _DSPDEBUGINTERFACE_H
|
|
|
|
#define _DSPDEBUGINTERFACE_H
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|
2009-06-21 08:39:21 +00:00
|
|
|
#include "DebugInterface.h"
|
2009-06-21 09:35:31 +00:00
|
|
|
#include "Common.h"
|
2009-06-07 11:06:40 +00:00
|
|
|
|
|
|
|
class DSPDebugInterface : public DebugInterface
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
DSPDebugInterface(){}
|
|
|
|
virtual void disasm(unsigned int address, char *dest, int max_size);
|
2009-06-17 19:50:59 +00:00
|
|
|
virtual void getRawMemoryString(int memory, unsigned int address, char *dest, int max_size);
|
2009-06-21 08:39:21 +00:00
|
|
|
virtual int getInstructionSize(int instruction) {return 1;}
|
2009-06-07 11:06:40 +00:00
|
|
|
virtual bool isAlive();
|
|
|
|
virtual bool isBreakpoint(unsigned int address);
|
|
|
|
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);
|
|
|
|
virtual unsigned int readInstruction(unsigned int address);
|
|
|
|
virtual unsigned int getPC();
|
|
|
|
virtual void setPC(unsigned int address);
|
|
|
|
virtual void step() {}
|
|
|
|
virtual void runToBreakpoint();
|
|
|
|
virtual void insertBLR(unsigned int address);
|
|
|
|
virtual int getColor(unsigned int address);
|
|
|
|
virtual std::string getDescription(unsigned int address);
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // _DSPDEBUGINTERFACE_H
|