summaryrefslogtreecommitdiff
path: root/Source/Core/Common/DebugInterface.h
diff options
context:
space:
mode:
authoraldelaro5 <aldelaro5@gmail.com>2017-03-02 20:07:24 -0500
committeraldelaro5 <aldelaro5@gmail.com>2017-03-18 22:48:57 -0400
commit8bf27cf42fd83918c6a730ffddbc12a0204213dc (patch)
tree3cc57ab249084123820b2ea399f6490e3974a7d6 /Source/Core/Common/DebugInterface.h
parentb83929477fdb890e289a199f47df686a638b81a5 (diff)
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.
Diffstat (limited to 'Source/Core/Common/DebugInterface.h')
-rw-r--r--Source/Core/Common/DebugInterface.h3
1 files changed, 2 insertions, 1 deletions
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 <cstddef>
#include <cstring>
#include <string>
@@ -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*/)
{
}