added an AX disasm with (few) comments. Moved some code around to prepare to share some breakpoint code between the ppc and dsp

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3566 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
hrydgard
2009-06-28 11:47:39 +00:00
parent f49e479d09
commit 7c92dada85
23 changed files with 2625 additions and 56 deletions

View File

@ -20,7 +20,7 @@
#include "Host.h"
#include "Debugger.h"
#include "StringUtil.h"
#include "Debugger/Debugger_BreakPoints.h"
#include "PowerPC/PowerPC.h"
BEGIN_EVENT_TABLE(BreakPointDlg,wxDialog)
@ -72,7 +72,7 @@ void BreakPointDlg::OnOK(wxCommandEvent& /*event*/)
u32 Address = 0;
if (AsciiToHex(AddressString.mb_str(), Address))
{
g_breakpoints.Add(Address);
PowerPC::breakpoints.Add(Address);
Host_UpdateBreakPointView();
Close();
}

View File

@ -19,9 +19,9 @@
#include "Common.h"
#include "BreakpointView.h"
#include "Debugger/Debugger_BreakPoints.h"
#include "Debugger/Debugger_SymbolMap.h"
#include "PowerPC/PPCSymbolDB.h"
#include "PowerPC/PowerPC.h"
BEGIN_EVENT_TABLE(CBreakPointView, wxListCtrl)
@ -47,7 +47,7 @@ void CBreakPointView::Update()
InsertColumn(4, wxT("Flags"), wxLIST_FORMAT_CENTER, 100);
char szBuffer[64];
const BreakPoints::TBreakPoints& rBreakPoints = g_breakpoints.GetBreakPoints();
const BreakPoints::TBreakPoints& rBreakPoints = PowerPC::breakpoints.GetBreakPoints();
for (size_t i = 0; i < rBreakPoints.size(); i++)
{
const TBreakPoint& rBP = rBreakPoints[i];
@ -74,7 +74,7 @@ void CBreakPointView::Update()
}
}
const MemChecks::TMemChecks& rMemChecks = g_memchecks.GetMemChecks();
const MemChecks::TMemChecks& rMemChecks = PowerPC::memchecks.GetMemChecks();
for (size_t i = 0; i < rMemChecks.size(); i++)
{
const TMemCheck& rMemCheck = rMemChecks[i];
@ -115,8 +115,8 @@ void CBreakPointView::DeleteCurrentSelection()
if (Item >= 0)
{
u32 Address = (u32)GetItemData(Item);
g_breakpoints.DeleteByAddress(Address);
g_memchecks.DeleteByAddress(Address);
PowerPC::breakpoints.DeleteByAddress(Address);
PowerPC::memchecks.DeleteByAddress(Address);
Update();
}
}

View File

@ -23,7 +23,7 @@
#include "BreakPointDlg.h"
#include "MemoryCheckDlg.h"
#include "Host.h"
#include "Debugger/Debugger_BreakPoints.h" // for TMemCheck
#include "PowerPC/PowerPC.h"
#include <wx/mstream.h>
@ -205,7 +205,7 @@ CBreakPointWindow::OnDelete(wxCommandEvent& event)
void
CBreakPointWindow::OnClear(wxCommandEvent& event)
{
g_breakpoints.Clear();
PowerPC::breakpoints.Clear();
}
// ============
@ -244,7 +244,7 @@ CBreakPointWindow::OnAddBreakPointMany(wxCommandEvent& event)
u32 Address = 0;
if (AsciiToHex(line.c_str(), Address))
{
g_breakpoints.Add(Address);
PowerPC::breakpoints.Add(Address);
}
}
// only update after we are done with the loop
@ -346,7 +346,7 @@ CBreakPointWindow::OnAddMemoryCheckMany(wxCommandEvent& event)
MemCheck.Log = true;
//MemCheck.Break = false; // this is also what sets Active "on" in the breakpoint window
// so don't think it's off because we are only writing this to the log
g_memchecks.Add(MemCheck);
PowerPC::memchecks.Add(MemCheck);
}
}
// update after we are done with the loop

View File

@ -20,7 +20,7 @@
#include "Debugger.h"
#include "StringUtil.h"
#include "Host.h"
#include "Debugger/Debugger_BreakPoints.h"
#include "PowerPC/PowerPC.h"
BEGIN_EVENT_TABLE(MemoryCheckDlg,wxDialog)
EVT_CLOSE(MemoryCheckDlg::OnClose)
@ -91,7 +91,7 @@ void MemoryCheckDlg::OnOK(wxCommandEvent& /*event*/)
MemCheck.Log = true;
MemCheck.Break = true;
g_memchecks.Add(MemCheck);
PowerPC::memchecks.Add(MemCheck);
Host_UpdateBreakPointView();
Close();
}