From 8bf27cf42fd83918c6a730ffddbc12a0204213dc Mon Sep 17 00:00:00 2001 From: aldelaro5 Date: Thu, 2 Mar 2017 20:07:24 -0500 Subject: Fix memory breakpoint when checking the middle of the data If the delimiters of a memory aren't exactly the same as an address, but their size includes the memory breakpoint delimiter, the break will not go through. This makes it so that you can specify a search for a memory breakpoint with a data size and will check if the data fits with that size on all memory breakpoints so the breaks go through. --- Source/Core/Common/DebugInterface.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Source/Core/Common/DebugInterface.h') diff --git a/Source/Core/Common/DebugInterface.h b/Source/Core/Common/DebugInterface.h index df9944ef23..521c16a8c7 100644 --- a/Source/Core/Common/DebugInterface.h +++ b/Source/Core/Common/DebugInterface.h @@ -4,6 +4,7 @@ #pragma once +#include #include #include @@ -26,7 +27,7 @@ public: virtual void ToggleBreakpoint(unsigned int /*address*/) {} virtual void AddWatch(unsigned int /*address*/) {} virtual void ClearAllMemChecks() {} - virtual bool IsMemCheck(unsigned int /*address*/) { return false; } + virtual bool IsMemCheck(unsigned int /*address*/, size_t /*size*/) { return false; } virtual void ToggleMemCheck(unsigned int /*address*/, bool /*read*/, bool /*write*/, bool /*log*/) { } -- cgit v1.2.3