Add ClearAllMemChecks to DebugInterface
Breakpoints have one, but memchecks don't, despite being cleared directly in the breakpoint window. Now DolphinWX should call the interface functions and not the direct functions of the breakpoints or memchecks for clearing.
This commit is contained in:
parent
96328902a5
commit
610a6f9b23
|
@ -18,6 +18,7 @@ public:
|
||||||
virtual void ClearBreakpoint(unsigned int /*address*/){}
|
virtual void ClearBreakpoint(unsigned int /*address*/){}
|
||||||
virtual void ClearAllBreakpoints() {}
|
virtual void ClearAllBreakpoints() {}
|
||||||
virtual void ToggleBreakpoint(unsigned int /*address*/){}
|
virtual void ToggleBreakpoint(unsigned int /*address*/){}
|
||||||
|
virtual void ClearAllMemChecks() {}
|
||||||
virtual bool IsMemCheck(unsigned int /*address*/) {return false;}
|
virtual bool IsMemCheck(unsigned int /*address*/) {return false;}
|
||||||
virtual void ToggleMemCheck(unsigned int /*address*/){}
|
virtual void ToggleMemCheck(unsigned int /*address*/){}
|
||||||
virtual unsigned int ReadMemory(unsigned int /*address*/){return 0;}
|
virtual unsigned int ReadMemory(unsigned int /*address*/){return 0;}
|
||||||
|
|
|
@ -121,6 +121,11 @@ void PPCDebugInterface::ToggleBreakpoint(unsigned int address)
|
||||||
PowerPC::breakpoints.Add(address);
|
PowerPC::breakpoints.Add(address);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void PPCDebugInterface::ClearAllMemChecks()
|
||||||
|
{
|
||||||
|
PowerPC::memchecks.Clear();
|
||||||
|
}
|
||||||
|
|
||||||
bool PPCDebugInterface::IsMemCheck(unsigned int address)
|
bool PPCDebugInterface::IsMemCheck(unsigned int address)
|
||||||
{
|
{
|
||||||
return (Memory::AreMemoryBreakpointsActivated()
|
return (Memory::AreMemoryBreakpointsActivated()
|
||||||
|
|
|
@ -23,6 +23,7 @@ public:
|
||||||
virtual void ClearBreakpoint(unsigned int address) override;
|
virtual void ClearBreakpoint(unsigned int address) override;
|
||||||
virtual void ClearAllBreakpoints() override;
|
virtual void ClearAllBreakpoints() override;
|
||||||
virtual void ToggleBreakpoint(unsigned int address) override;
|
virtual void ToggleBreakpoint(unsigned int address) override;
|
||||||
|
virtual void ClearAllMemChecks() override;
|
||||||
virtual bool IsMemCheck(unsigned int address) override;
|
virtual bool IsMemCheck(unsigned int address) override;
|
||||||
virtual void ToggleMemCheck(unsigned int address) override;
|
virtual void ToggleMemCheck(unsigned int address) override;
|
||||||
virtual unsigned int ReadMemory(unsigned int address) override;
|
virtual unsigned int ReadMemory(unsigned int address) override;
|
||||||
|
|
|
@ -127,6 +127,11 @@ bool DSPDebugInterface::IsMemCheck(unsigned int address)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void DSPDebugInterface::ClearAllMemChecks()
|
||||||
|
{
|
||||||
|
PanicAlert("MemCheck functionality not supported in DSP module.");
|
||||||
|
}
|
||||||
|
|
||||||
void DSPDebugInterface::ToggleMemCheck(unsigned int address)
|
void DSPDebugInterface::ToggleMemCheck(unsigned int address)
|
||||||
{
|
{
|
||||||
PanicAlert("MemCheck functionality not supported in DSP module.");
|
PanicAlert("MemCheck functionality not supported in DSP module.");
|
||||||
|
|
|
@ -23,6 +23,7 @@ public:
|
||||||
virtual void ClearBreakpoint(unsigned int address);
|
virtual void ClearBreakpoint(unsigned int address);
|
||||||
virtual void ClearAllBreakpoints();
|
virtual void ClearAllBreakpoints();
|
||||||
virtual void ToggleBreakpoint(unsigned int address);
|
virtual void ToggleBreakpoint(unsigned int address);
|
||||||
|
virtual void ClearAllMemChecks();
|
||||||
virtual bool IsMemCheck(unsigned int address);
|
virtual bool IsMemCheck(unsigned int address);
|
||||||
virtual void ToggleMemCheck(unsigned int address);
|
virtual void ToggleMemCheck(unsigned int address);
|
||||||
virtual unsigned int ReadMemory(unsigned int address);
|
virtual unsigned int ReadMemory(unsigned int address);
|
||||||
|
|
|
@ -153,8 +153,9 @@ void CBreakPointWindow::OnSelectBP(wxListEvent& event)
|
||||||
// Clear all breakpoints and memchecks
|
// Clear all breakpoints and memchecks
|
||||||
void CBreakPointWindow::OnClear(wxCommandEvent& WXUNUSED(event))
|
void CBreakPointWindow::OnClear(wxCommandEvent& WXUNUSED(event))
|
||||||
{
|
{
|
||||||
PowerPC::breakpoints.Clear();
|
PowerPC::debug_interface.ClearAllBreakpoints();
|
||||||
PowerPC::memchecks.Clear();
|
PowerPC::debug_interface.ClearAllMemChecks();
|
||||||
|
|
||||||
NotifyUpdate();
|
NotifyUpdate();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue