2015-05-23 22:55:12 -06:00
|
|
|
// Copyright 2009 Dolphin Emulator Project
|
2015-05-17 17:08:10 -06:00
|
|
|
// Licensed under GPLv2+
|
2013-04-17 21:43:35 -06:00
|
|
|
// Refer to the license.txt file included.
|
2009-07-05 20:10:26 -06:00
|
|
|
|
2014-02-10 11:54:46 -07:00
|
|
|
#pragma once
|
2009-07-05 20:10:26 -06:00
|
|
|
|
2014-02-22 15:36:30 -07:00
|
|
|
#include <wx/aui/framemanager.h>
|
2016-06-24 02:43:46 -06:00
|
|
|
#include <wx/panel.h>
|
2009-07-05 20:10:26 -06:00
|
|
|
|
2014-02-22 15:36:30 -07:00
|
|
|
#include "Common/CommonTypes.h"
|
2014-02-17 03:18:15 -07:00
|
|
|
#include "Core/HW/DSPLLE/DSPDebugInterface.h"
|
2009-07-05 20:10:26 -06:00
|
|
|
|
|
|
|
class DSPRegisterView;
|
|
|
|
class CCodeView;
|
2010-02-18 05:06:13 -07:00
|
|
|
class CMemoryView;
|
2014-02-22 15:36:30 -07:00
|
|
|
class wxAuiNotebook;
|
2016-07-15 15:59:05 -06:00
|
|
|
class DolphinAuiToolBar;
|
2014-02-22 15:36:30 -07:00
|
|
|
class wxListBox;
|
2009-07-05 20:10:26 -06:00
|
|
|
|
2010-07-18 20:09:34 -06:00
|
|
|
class DSPDebuggerLLE : public wxPanel
|
2009-07-05 20:10:26 -06:00
|
|
|
{
|
|
|
|
public:
|
2016-06-24 02:43:46 -06:00
|
|
|
DSPDebuggerLLE(wxWindow* parent, wxWindowID id = wxID_ANY);
|
|
|
|
virtual ~DSPDebuggerLLE();
|
2009-07-05 20:10:26 -06:00
|
|
|
|
2016-10-03 01:29:50 -06:00
|
|
|
void Repopulate();
|
2009-07-05 20:10:26 -06:00
|
|
|
|
|
|
|
private:
|
2016-06-24 02:43:46 -06:00
|
|
|
enum
|
|
|
|
{
|
|
|
|
ID_TOOLBAR = 1000,
|
|
|
|
ID_RUNTOOL,
|
|
|
|
ID_STEPTOOL,
|
|
|
|
ID_SHOWPCTOOL,
|
|
|
|
};
|
2009-07-05 20:10:26 -06:00
|
|
|
|
2016-06-24 02:43:46 -06:00
|
|
|
DSPDebugInterface debug_interface;
|
|
|
|
u64 m_CachedStepCounter;
|
2009-07-05 20:10:26 -06:00
|
|
|
|
2016-06-24 02:43:46 -06:00
|
|
|
// GUI updaters
|
|
|
|
void UpdateDisAsmListView();
|
|
|
|
void UpdateRegisterFlags();
|
|
|
|
void UpdateSymbolMap();
|
|
|
|
void UpdateState();
|
2009-07-05 20:10:26 -06:00
|
|
|
|
2016-06-24 02:43:46 -06:00
|
|
|
// GUI items
|
|
|
|
wxAuiManager m_mgr;
|
2016-07-15 15:59:05 -06:00
|
|
|
DolphinAuiToolBar* m_Toolbar;
|
2016-06-24 02:43:46 -06:00
|
|
|
CCodeView* m_CodeView;
|
|
|
|
CMemoryView* m_MemView;
|
|
|
|
DSPRegisterView* m_Regs;
|
|
|
|
wxListBox* m_SymbolList;
|
|
|
|
wxTextCtrl* m_addr_txtctrl;
|
|
|
|
wxAuiNotebook* m_MainNotebook;
|
2016-10-03 01:29:50 -06:00
|
|
|
wxSize m_toolbar_item_size;
|
2009-07-05 20:10:26 -06:00
|
|
|
|
2016-06-24 02:43:46 -06:00
|
|
|
void OnChangeState(wxCommandEvent& event);
|
|
|
|
// void OnRightClick(wxListEvent& event);
|
|
|
|
// void OnDoubleClick(wxListEvent& event);
|
|
|
|
void OnAddrBoxChange(wxCommandEvent& event);
|
|
|
|
void OnSymbolListChange(wxCommandEvent& event);
|
2009-07-05 20:10:26 -06:00
|
|
|
|
2016-06-24 02:43:46 -06:00
|
|
|
bool JumpToAddress(u16 addr);
|
2009-07-05 20:10:26 -06:00
|
|
|
|
2016-06-24 02:43:46 -06:00
|
|
|
void FocusOnPC();
|
|
|
|
// void UnselectAll();
|
2009-07-05 20:10:26 -06:00
|
|
|
};
|