diff --git a/Source/Core/Core/Src/Debugger/DebugInterface.h b/Source/Core/Core/Src/Debugger/DebugInterface.h index dcff6e65af..cfa81b93ec 100644 --- a/Source/Core/Core/Src/Debugger/DebugInterface.h +++ b/Source/Core/Core/Src/Debugger/DebugInterface.h @@ -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() {} diff --git a/Source/Core/Core/Src/Debugger/PPCDebugInterface.cpp b/Source/Core/Core/Src/Debugger/PPCDebugInterface.cpp index 0bffbb465b..8605a3d595 100644 --- a/Source/Core/Core/Src/Debugger/PPCDebugInterface.cpp +++ b/Source/Core/Core/Src/Debugger/PPCDebugInterface.cpp @@ -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; diff --git a/Source/Core/Core/Src/Debugger/PPCDebugInterface.h b/Source/Core/Core/Src/Debugger/PPCDebugInterface.h index ce4d6601b6..1a5b5c2b8b 100644 --- a/Source/Core/Core/Src/Debugger/PPCDebugInterface.h +++ b/Source/Core/Core/Src/Debugger/PPCDebugInterface.h @@ -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() {}