2015-05-24 04:55:12 +00:00
|
|
|
// Copyright 2009 Dolphin Emulator Project
|
2015-05-17 23:08:10 +00:00
|
|
|
// Licensed under GPLv2+
|
2013-04-18 03:43:35 +00:00
|
|
|
// 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/aui/framemanager.h>
|
2016-06-24 08:43:46 +00:00
|
|
|
#include <wx/panel.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;
|
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:
|
2016-06-24 08:43:46 +00:00
|
|
|
DSPDebuggerLLE(wxWindow* parent, wxWindowID id = wxID_ANY);
|
|
|
|
virtual ~DSPDebuggerLLE();
|
2009-07-06 02:10:26 +00:00
|
|
|
|
2016-06-24 08:43:46 +00:00
|
|
|
void Update() override;
|
2009-07-06 02:10:26 +00:00
|
|
|
|
|
|
|
private:
|
2016-06-24 08:43:46 +00:00
|
|
|
enum
|
|
|
|
{
|
|
|
|
ID_TOOLBAR = 1000,
|
|
|
|
ID_RUNTOOL,
|
|
|
|
ID_STEPTOOL,
|
|
|
|
ID_SHOWPCTOOL,
|
|
|
|
};
|
2009-07-06 02:10:26 +00:00
|
|
|
|
2016-06-24 08:43:46 +00:00
|
|
|
DSPDebugInterface debug_interface;
|
|
|
|
u64 m_CachedStepCounter;
|
2009-07-06 02:10:26 +00:00
|
|
|
|
2016-06-24 08:43:46 +00:00
|
|
|
// GUI updaters
|
|
|
|
void UpdateDisAsmListView();
|
|
|
|
void UpdateRegisterFlags();
|
|
|
|
void UpdateSymbolMap();
|
|
|
|
void UpdateState();
|
2009-07-06 02:10:26 +00:00
|
|
|
|
2016-06-24 08:43:46 +00:00
|
|
|
// GUI items
|
|
|
|
wxAuiManager m_mgr;
|
|
|
|
wxAuiToolBar* m_Toolbar;
|
|
|
|
CCodeView* m_CodeView;
|
|
|
|
CMemoryView* m_MemView;
|
|
|
|
DSPRegisterView* m_Regs;
|
|
|
|
wxListBox* m_SymbolList;
|
|
|
|
wxTextCtrl* m_addr_txtctrl;
|
|
|
|
wxAuiNotebook* m_MainNotebook;
|
2009-07-06 02:10:26 +00:00
|
|
|
|
2016-06-24 08:43:46 +00:00
|
|
|
void OnClose(wxCloseEvent& event);
|
|
|
|
void OnChangeState(wxCommandEvent& event);
|
|
|
|
// void OnRightClick(wxListEvent& event);
|
|
|
|
// void OnDoubleClick(wxListEvent& event);
|
|
|
|
void OnAddrBoxChange(wxCommandEvent& event);
|
|
|
|
void OnSymbolListChange(wxCommandEvent& event);
|
2009-07-06 02:10:26 +00:00
|
|
|
|
2016-06-24 08:43:46 +00:00
|
|
|
bool JumpToAddress(u16 addr);
|
2009-07-06 02:10:26 +00:00
|
|
|
|
2016-06-24 08:43:46 +00:00
|
|
|
void FocusOnPC();
|
|
|
|
// void UnselectAll();
|
2009-07-06 02:10:26 +00:00
|
|
|
};
|