2009-07-28 21:32:10 +00:00
|
|
|
// Copyright (C) 2003 Dolphin Project.
|
2009-07-06 02:10:26 +00:00
|
|
|
|
|
|
|
// This program is free software: you can redistribute it and/or modify
|
|
|
|
// it under the terms of the GNU General Public License as published by
|
|
|
|
// the Free Software Foundation, version 2.0.
|
|
|
|
|
|
|
|
// This program is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
// GNU General Public License 2.0 for more details.
|
|
|
|
|
|
|
|
// A copy of the GPL 2.0 should have been included with the program.
|
|
|
|
// If not, see http://www.gnu.org/licenses/
|
|
|
|
|
|
|
|
// Official SVN repository and contact information can be found at
|
|
|
|
// http://code.google.com/p/dolphin-emu/
|
|
|
|
|
|
|
|
#ifndef _DSP_DEBUGGER_LLE_H
|
|
|
|
#define _DSP_DEBUGGER_LLE_H
|
|
|
|
|
|
|
|
// general things
|
|
|
|
#include <iostream>
|
|
|
|
#include <vector>
|
|
|
|
#include <list>
|
|
|
|
#include <map>
|
|
|
|
#include <algorithm>
|
|
|
|
|
|
|
|
#include <wx/wx.h>
|
|
|
|
#include <wx/frame.h>
|
|
|
|
#include <wx/button.h>
|
|
|
|
#include <wx/stattext.h>
|
|
|
|
#include <wx/statbox.h>
|
|
|
|
#include <wx/sizer.h>
|
|
|
|
#include <wx/listctrl.h>
|
|
|
|
#include <wx/statline.h>
|
2010-02-18 12:06:13 +00:00
|
|
|
#include <wx/aui/aui.h>
|
2009-07-06 02:10:26 +00:00
|
|
|
|
2011-01-29 14:06:48 +00:00
|
|
|
#include "DSP/disassemble.h"
|
|
|
|
#include "DSP/DSPInterpreter.h"
|
|
|
|
#include "DSP/DSPMemoryMap.h"
|
2011-01-28 18:39:30 +00:00
|
|
|
#include "HW/DSPLLE/DSPDebugInterface.h"
|
2009-07-06 02:10:26 +00:00
|
|
|
|
|
|
|
class DSPRegisterView;
|
|
|
|
class CCodeView;
|
2010-02-18 12:06:13 +00:00
|
|
|
class CMemoryView;
|
2009-07-06 02:10:26 +00:00
|
|
|
|
2010-07-19 02:09:34 +00:00
|
|
|
class DSPDebuggerLLE : public wxPanel
|
2009-07-06 02:10:26 +00:00
|
|
|
{
|
|
|
|
public:
|
2011-01-31 04:36:49 +00:00
|
|
|
DSPDebuggerLLE(wxWindow *parent, wxWindowID id = wxID_ANY);
|
2009-07-06 02:10:26 +00:00
|
|
|
virtual ~DSPDebuggerLLE();
|
|
|
|
|
|
|
|
void Refresh();
|
|
|
|
|
|
|
|
private:
|
|
|
|
DECLARE_EVENT_TABLE();
|
|
|
|
|
|
|
|
enum
|
|
|
|
{
|
|
|
|
ID_TOOLBAR = 1000,
|
|
|
|
ID_RUNTOOL,
|
|
|
|
ID_STEPTOOL,
|
|
|
|
ID_SHOWPCTOOL,
|
|
|
|
ID_ADDRBOX,
|
|
|
|
ID_SYMBOLLIST,
|
2010-02-18 12:06:13 +00:00
|
|
|
ID_DSP_REGS
|
2009-07-06 02:10:26 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
DSPDebugInterface debug_interface;
|
|
|
|
u64 m_CachedStepCounter;
|
|
|
|
|
|
|
|
// GUI updaters
|
|
|
|
void UpdateDisAsmListView();
|
|
|
|
void UpdateRegisterFlags();
|
|
|
|
void UpdateSymbolMap();
|
|
|
|
void UpdateState();
|
|
|
|
|
|
|
|
// GUI items
|
2010-02-18 12:06:13 +00:00
|
|
|
wxAuiManager m_mgr;
|
|
|
|
wxAuiToolBar* m_Toolbar;
|
2009-07-06 02:10:26 +00:00
|
|
|
CCodeView* m_CodeView;
|
2010-02-18 12:06:13 +00:00
|
|
|
CMemoryView* m_MemView;
|
2009-07-06 02:10:26 +00:00
|
|
|
DSPRegisterView* m_Regs;
|
|
|
|
wxListBox* m_SymbolList;
|
2010-02-18 12:06:13 +00:00
|
|
|
wxAuiNotebook* m_MainNotebook;
|
2009-07-06 02:10:26 +00:00
|
|
|
|
|
|
|
void OnClose(wxCloseEvent& event);
|
|
|
|
void OnChangeState(wxCommandEvent& event);
|
2011-01-31 04:36:49 +00:00
|
|
|
//void OnRightClick(wxListEvent& event);
|
|
|
|
//void OnDoubleClick(wxListEvent& event);
|
2009-07-06 02:10:26 +00:00
|
|
|
void OnAddrBoxChange(wxCommandEvent& event);
|
|
|
|
void OnSymbolListChange(wxCommandEvent& event);
|
|
|
|
|
|
|
|
bool JumpToAddress(u16 addr);
|
|
|
|
|
|
|
|
void FocusOnPC();
|
2011-01-31 04:36:49 +00:00
|
|
|
//void UnselectAll();
|
2009-07-06 02:10:26 +00:00
|
|
|
};
|
|
|
|
|
2010-07-28 15:22:27 +00:00
|
|
|
extern DSPDebuggerLLE* m_DebuggerFrame;
|
|
|
|
|
2009-07-06 02:10:26 +00:00
|
|
|
#endif //_DSP_DEBUGGER_LLE_H
|