mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-10-25 02:49:08 -05:00
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.
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <cstddef>
|
||||
#include <string>
|
||||
|
||||
#include "Common/DebugInterface.h"
|
||||
@@ -25,7 +26,7 @@ public:
|
||||
void AddWatch(unsigned int address) override;
|
||||
void ToggleBreakpoint(unsigned int address) override;
|
||||
void ClearAllMemChecks() override;
|
||||
bool IsMemCheck(unsigned int address) override;
|
||||
bool IsMemCheck(unsigned int address, size_t size = 1) override;
|
||||
void ToggleMemCheck(unsigned int address, bool read = true, bool write = true,
|
||||
bool log = true) override;
|
||||
unsigned int ReadMemory(unsigned int address) override;
|
||||
|
||||
Reference in New Issue
Block a user