diff options
| author | Sepalani <sepalani@hotmail.fr> | 2018-01-29 17:58:02 +0100 |
|---|---|---|
| committer | Sepalani <sepalani@hotmail.fr> | 2018-04-28 17:46:51 +0400 |
| commit | 74d4a4478facdbe400def1967abcde07e9f3dde7 (patch) | |
| tree | bdf172ce3d9afa922239d4f040f9869721af9b5a /Source/Core/Common/DebugInterface.h | |
| parent | 28138cfde9d0d59f2e66defca43885821fbdacb3 (diff) | |
DebugInterface: Watches methods added
Move Watches to Common
Diffstat (limited to 'Source/Core/Common/DebugInterface.h')
| -rw-r--r-- | Source/Core/Common/DebugInterface.h | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/Source/Core/Common/DebugInterface.h b/Source/Core/Common/DebugInterface.h index 9b66f30a8e..363c8743e4 100644 --- a/Source/Core/Common/DebugInterface.h +++ b/Source/Core/Common/DebugInterface.h @@ -7,6 +7,10 @@ #include <cstddef> #include <cstring> #include <string> +#include <vector> + +#include "Common/CommonTypes.h" +#include "Common/Debug/Watches.h" class DebugInterface { @@ -14,6 +18,22 @@ protected: virtual ~DebugInterface() {} public: + // Watches + virtual std::size_t SetWatch(u32 address, const std::string& name = "") = 0; + virtual const Common::Debug::Watch& GetWatch(std::size_t index) const = 0; + virtual const std::vector<Common::Debug::Watch>& GetWatches() const = 0; + virtual void UnsetWatch(u32 address) = 0; + virtual void UpdateWatch(std::size_t index, u32 address, const std::string& name) = 0; + virtual void UpdateWatchAddress(std::size_t index, u32 address) = 0; + virtual void UpdateWatchName(std::size_t index, const std::string& name) = 0; + virtual void EnableWatch(std::size_t index) = 0; + virtual void DisableWatch(std::size_t index) = 0; + virtual bool HasEnabledWatch(u32 address) const = 0; + virtual void RemoveWatch(std::size_t index) = 0; + virtual void LoadWatchesFromStrings(const std::vector<std::string>& watches) = 0; + virtual std::vector<std::string> SaveWatchesToStrings() const = 0; + virtual void ClearWatches() = 0; + virtual std::string Disassemble(unsigned int /*address*/) { return "NODEBUGGER"; } virtual std::string GetRawMemoryString(int /*memory*/, unsigned int /*address*/) { @@ -26,7 +46,6 @@ public: virtual void ClearBreakpoint(unsigned int /*address*/) {} virtual void ClearAllBreakpoints() {} virtual void ToggleBreakpoint(unsigned int /*address*/) {} - virtual void AddWatch(unsigned int /*address*/) {} virtual void ClearAllMemChecks() {} virtual bool IsMemCheck(unsigned int /*address*/, size_t /*size*/) { return false; } virtual void ToggleMemCheck(unsigned int /*address*/, bool /*read*/, bool /*write*/, bool /*log*/) @@ -43,4 +62,5 @@ public: virtual void Patch(unsigned int /*address*/, unsigned int /*value*/) {} virtual int GetColor(unsigned int /*address*/) { return 0xFFFFFFFF; } virtual std::string GetDescription(unsigned int /*address*/) = 0; + virtual void Clear() = 0; }; |
