give the DSP breakpoints that can be toggled but don't work yet :p

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3568 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
hrydgard 2009-06-28 12:30:34 +00:00
parent 8e7fdbc150
commit 6c52ab1c39
4 changed files with 31 additions and 12 deletions

View file

@ -75,34 +75,49 @@ bool DSPDebugInterface::isAlive()
bool DSPDebugInterface::isBreakpoint(unsigned int address)
{
return false; //BreakPoints::IsAddressBreakPoint(address);
int real_addr = DSPSymbols::Line2Addr(address);
if (real_addr >= 0)
return dsp_breakpoints.IsAddressBreakPoint(real_addr);
else
return false;
}
void DSPDebugInterface::setBreakpoint(unsigned int address)
{
//if (BreakPoints::Add(address))
// jit.NotifyBreakpoint(address, true);
int real_addr = DSPSymbols::Line2Addr(address);
if (real_addr >= 0) {
if (dsp_breakpoints.Add(real_addr))
;
}
}
void DSPDebugInterface::clearBreakpoint(unsigned int address)
{
//if (BreakPoints::Remove(address))
// jit.NotifyBreakpoint(address, false);
int real_addr = DSPSymbols::Line2Addr(address);
if (real_addr >= 0) {
if (dsp_breakpoints.Remove(real_addr))
;
}
}
void DSPDebugInterface::clearAllBreakpoints() {}
void DSPDebugInterface::clearAllBreakpoints() {
dsp_breakpoints.Clear();
}
void DSPDebugInterface::toggleBreakpoint(unsigned int address)
{
//if (BreakPoints::IsAddressBreakPoint(address))
// BreakPoints::Remove(address);
//else
// BreakPoints::Add(address);
int real_addr = DSPSymbols::Line2Addr(address);
if (real_addr >= 0) {
if (dsp_breakpoints.IsAddressBreakPoint(real_addr))
dsp_breakpoints.Remove(real_addr);
else
dsp_breakpoints.Add(real_addr);
}
}
void DSPDebugInterface::insertBLR(unsigned int address)
{
PanicAlert("insertBLR functionality not supported in DSP module.");
}
// =======================================================