2013-04-18 03:43:35 +00:00
|
|
|
// Copyright 2013 Dolphin Emulator Project
|
|
|
|
// Licensed under GPLv2
|
|
|
|
// Refer to the license.txt file included.
|
2009-07-06 02:10:26 +00:00
|
|
|
|
2014-02-10 18:54:46 +00:00
|
|
|
#pragma once
|
2009-07-06 02:10:26 +00:00
|
|
|
|
2014-02-22 22:36:30 +00:00
|
|
|
#include <wx/defs.h>
|
|
|
|
#include <wx/event.h>
|
|
|
|
#include <wx/panel.h>
|
|
|
|
#include <wx/windowid.h>
|
|
|
|
#include <wx/aui/framemanager.h>
|
2009-07-06 02:10:26 +00:00
|
|
|
|
2014-02-22 22:36:30 +00:00
|
|
|
#include "Common/CommonTypes.h"
|
2014-02-17 10:18:15 +00:00
|
|
|
#include "Core/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;
|
2014-02-22 22:36:30 +00:00
|
|
|
class wxAuiNotebook;
|
|
|
|
class wxAuiToolBar;
|
|
|
|
class wxListBox;
|
|
|
|
class wxWindow;
|
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();
|
|
|
|
|
2014-03-08 00:54:44 +00:00
|
|
|
void Update() override;
|
2009-07-06 02:10:26 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
enum
|
|
|
|
{
|
|
|
|
ID_TOOLBAR = 1000,
|
|
|
|
ID_RUNTOOL,
|
|
|
|
ID_STEPTOOL,
|
|
|
|
ID_SHOWPCTOOL,
|
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;
|
2014-11-06 03:19:52 +00:00
|
|
|
wxTextCtrl* m_addr_txtctrl;
|
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
|
|
|
};
|
|
|
|
|