Make copy hex function in the debugger do so correctly

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1275 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
hrydgard 2008-11-23 17:44:06 +00:00
parent ac970f100e
commit 464185a04e
3 changed files with 7 additions and 0 deletions

View File

@ -19,6 +19,7 @@ public:
virtual void clearAllBreakpoints() {}
virtual void toggleBreakpoint(unsigned int /*address*/){}
virtual unsigned int readMemory(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() {}

View File

@ -66,6 +66,11 @@ unsigned int PPCDebugInterface::readMemory(unsigned int address)
return Memory::ReadUnchecked_U32(address);
}
unsigned int PPCDebugInterface::readInstruction(unsigned int address)
{
return Memory::Read_Instruction(address);
}
bool PPCDebugInterface::isAlive()
{
return Core::GetState() != Core::CORE_UNINITIALIZED;

View File

@ -21,6 +21,7 @@ public:
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() {}