mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 00:59:44 -06: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:
@ -416,11 +416,11 @@ u32 HostRead_Instruction(const u32 address)
|
||||
return inst.hex;
|
||||
}
|
||||
|
||||
static void Memcheck(u32 address, u32 var, bool write, int size)
|
||||
static void Memcheck(u32 address, u32 var, bool write, size_t size)
|
||||
{
|
||||
if (PowerPC::memchecks.HasAny())
|
||||
{
|
||||
TMemCheck* mc = PowerPC::memchecks.GetMemCheck(address);
|
||||
TMemCheck* mc = PowerPC::memchecks.GetMemCheck(address, size);
|
||||
if (mc)
|
||||
{
|
||||
if (CPU::IsStepping())
|
||||
|
Reference in New Issue
Block a user