Cleanup the breakpoint code a bit, fix updating the breakpoint window when clicking in the bp column in the code view.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1607 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
hrydgard
2008-12-20 14:00:33 +00:00
parent 66853d6f1b
commit 01598750b9
12 changed files with 157 additions and 165 deletions

View File

@ -47,7 +47,7 @@ void CBreakPointView::Update()
InsertColumn(4, wxT("Flags"), wxLIST_FORMAT_CENTER, 100);
char szBuffer[64];
const CBreakPoints::TBreakPoints& rBreakPoints = CBreakPoints::GetBreakPoints();
const BreakPoints::TBreakPoints& rBreakPoints = BreakPoints::GetBreakPoints();
for (size_t i = 0; i < rBreakPoints.size(); i++)
{
const TBreakPoint& rBP = rBreakPoints[i];
@ -74,7 +74,7 @@ void CBreakPointView::Update()
}
}
const CBreakPoints::TMemChecks& rMemChecks = CBreakPoints::GetMemChecks();
const MemChecks::TMemChecks& rMemChecks = MemChecks::GetMemChecks();
for (size_t i = 0; i < rMemChecks.size(); i++)
{
const TMemCheck& rMemCheck = rMemChecks[i];
@ -106,7 +106,6 @@ void CBreakPointView::Update()
SetItemData(Item, rMemCheck.StartAddress);
}
Refresh();
}
@ -116,6 +115,8 @@ void CBreakPointView::DeleteCurrentSelection()
if (Item >= 0)
{
u32 Address = (u32)GetItemData(Item);
CBreakPoints::DeleteElementByAddress(Address);
BreakPoints::DeleteByAddress(Address);
MemChecks::DeleteByAddress(Address);
Update();
}
}