Merge pull request #4131 from aldelaro5/memoryViewer-memChecks-improvements

Add the configuration of how a memory check is added via the memory window
This commit is contained in:
Scott Mansell
2016-09-15 10:46:07 +12:00
committed by GitHub
9 changed files with 56 additions and 10 deletions

View File

@ -140,7 +140,7 @@ bool PPCDebugInterface::IsMemCheck(unsigned int address)
return (PowerPC::memchecks.HasAny() && PowerPC::memchecks.GetMemCheck(address));
}
void PPCDebugInterface::ToggleMemCheck(unsigned int address)
void PPCDebugInterface::ToggleMemCheck(unsigned int address, bool read, bool write, bool log)
{
if (PowerPC::memchecks.HasAny() && !PowerPC::memchecks.GetMemCheck(address))
{
@ -148,10 +148,10 @@ void PPCDebugInterface::ToggleMemCheck(unsigned int address)
TMemCheck MemCheck;
MemCheck.StartAddress = address;
MemCheck.EndAddress = address;
MemCheck.OnRead = true;
MemCheck.OnWrite = true;
MemCheck.OnRead = read;
MemCheck.OnWrite = write;
MemCheck.Log = true;
MemCheck.Log = log;
MemCheck.Break = true;
PowerPC::memchecks.Add(MemCheck);