From 0718937237db22d26e1b764b4733645c2b9f1562 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Thu, 17 Jul 2014 21:33:51 -0400 Subject: Common: Introduce the new Gekko disassembler to Common. This moves the Gekko disassembler to Common where it should be. Having it in the Bochs disassembly Externals is incorrect. Unlike the PowerPC disassembler prior however, this one is updated to have an API that is more fitting for C++. e.g. Not needing to specify a string buffer and size. It does all of this under the hood. This modifies all the DebuggingInterfaces as necessary to handle this. --- Source/Core/Common/DebugInterface.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source/Core/Common/DebugInterface.h') diff --git a/Source/Core/Common/DebugInterface.h b/Source/Core/Common/DebugInterface.h index 26e0a3e2ee..96b4eec275 100644 --- a/Source/Core/Common/DebugInterface.h +++ b/Source/Core/Common/DebugInterface.h @@ -9,7 +9,7 @@ protected: virtual ~DebugInterface() {} public: - virtual void Disassemble(unsigned int /*address*/, char *dest, int /*max_size*/) {strcpy(dest, "NODEBUGGER");} + virtual std::string Disassemble(unsigned int /*address*/) { return "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;} -- cgit v1.2.3