summaryrefslogtreecommitdiff
path: root/Source/Core/Common/DebugInterface.h
diff options
context:
space:
mode:
authorTryTwo <taolas@gmail.com>2022-03-17 12:53:38 -0700
committerTryTwo <taolas@gmail.com>2022-03-17 12:53:38 -0700
commit53cf78d413cb4e4cc546f027423a6a011cd30a64 (patch)
treec86cca8e02eaad96f468191a3128adb8f5f6c929 /Source/Core/Common/DebugInterface.h
parent58c02e6b8585e0764643853f8e255b5013978469 (diff)
Gekko constistancy changes. Add context item to codeview to show or copy a load/store target memory address from instructions at or near PC when paused.
Diffstat (limited to 'Source/Core/Common/DebugInterface.h')
-rw-r--r--Source/Core/Common/DebugInterface.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/Core/Common/DebugInterface.h b/Source/Core/Common/DebugInterface.h
index 43d917e975..a59ac79f69 100644
--- a/Source/Core/Common/DebugInterface.h
+++ b/Source/Core/Common/DebugInterface.h
@@ -72,6 +72,11 @@ public:
virtual void WriteExtraMemory(int /*memory*/, u32 /*value*/, u32 /*address*/) {}
virtual u32 ReadExtraMemory(int /*memory*/, u32 /*address*/) const { return 0; }
virtual u32 ReadInstruction(u32 /*address*/) const { return 0; }
+ virtual std::optional<u32>
+ GetMemoryAddressFromInstruction(const std::string& /*instruction*/) const
+ {
+ return std::nullopt;
+ }
virtual u32 GetPC() const { return 0; }
virtual void SetPC(u32 /*address*/) {}
virtual void Step() {}