summaryrefslogtreecommitdiff
path: root/Source/Core/Common/DebugInterface.h
diff options
context:
space:
mode:
authorMarkus Wick <degasus@users.noreply.github.com>2016-10-08 10:48:45 +0200
committerGitHub <noreply@github.com>2016-10-08 10:48:45 +0200
commit0e5fc56bc9f38f4b0c798543e47e0bad15a0a477 (patch)
tree8fcbe33bd5436748a543d823dade1d806b2af8c6 /Source/Core/Common/DebugInterface.h
parent1a2d71cb58afcafbfca4f8457c4f0c2e22d8d2a3 (diff)
parentee71d707388e4ce2103a0f513bdb181b23d166bc (diff)
Merge pull request #4316 from lioncash/debug
DebugInterface: Make GetRawMemoryString return a std::string
Diffstat (limited to 'Source/Core/Common/DebugInterface.h')
-rw-r--r--Source/Core/Common/DebugInterface.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/Core/Common/DebugInterface.h b/Source/Core/Common/DebugInterface.h
index 3aa8faec8f..df9944ef23 100644
--- a/Source/Core/Common/DebugInterface.h
+++ b/Source/Core/Common/DebugInterface.h
@@ -13,10 +13,9 @@ protected:
virtual ~DebugInterface() {}
public:
virtual std::string Disassemble(unsigned int /*address*/) { return "NODEBUGGER"; }
- virtual void GetRawMemoryString(int /*memory*/, unsigned int /*address*/, char* dest,
- int /*max_size*/)
+ virtual std::string GetRawMemoryString(int /*memory*/, unsigned int /*address*/)
{
- strcpy(dest, "NODEBUGGER");
+ return "NODEBUGGER";
}
virtual int GetInstructionSize(int /*instruction*/) { return 1; }
virtual bool IsAlive() { return true; }