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:
aldelaro5
2017-03-02 20:07:24 -05:00
parent b83929477f
commit 8bf27cf42f
9 changed files with 22 additions and 20 deletions

View File

@ -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())