2013-10-27 06:18:10 +00:00
|
|
|
#pragma once
|
2006-06-15 04:19:30 +00:00
|
|
|
|
2007-12-01 04:08:34 +00:00
|
|
|
#include <string>
|
2008-11-28 02:56:27 +00:00
|
|
|
#include <functional>
|
2006-06-15 04:19:30 +00:00
|
|
|
#include "DisAsmWnd.h"
|
|
|
|
#include "MemoryViewMIPSWnd.h"
|
|
|
|
#include "RegViewWnd.h"
|
|
|
|
#include "CallStackWnd.h"
|
2007-12-01 04:08:34 +00:00
|
|
|
#include "../VirtualMachine.h"
|
2006-06-15 04:19:30 +00:00
|
|
|
|
2012-05-24 05:57:31 +00:00
|
|
|
class CDebugView : public boost::signals2::trackable
|
2006-06-15 04:19:30 +00:00
|
|
|
{
|
|
|
|
public:
|
2012-05-12 04:31:40 +00:00
|
|
|
typedef std::function<void (void)> StepFunction;
|
2008-11-28 02:56:27 +00:00
|
|
|
|
2013-10-27 06:18:10 +00:00
|
|
|
CDebugView(HWND, CVirtualMachine&, CMIPS*, const StepFunction&, CBiosDebugInfoProvider*, const char*, CDisAsmWnd::DISASM_TYPE = CDisAsmWnd::DISASM_STANDARD);
|
2012-05-24 05:57:31 +00:00
|
|
|
virtual ~CDebugView();
|
2013-10-27 06:18:10 +00:00
|
|
|
|
2012-05-24 05:57:31 +00:00
|
|
|
CMIPS* GetContext();
|
|
|
|
CDisAsmWnd* GetDisassemblyWindow();
|
|
|
|
CMemoryViewMIPSWnd* GetMemoryViewWindow();
|
|
|
|
CRegViewWnd* GetRegisterViewWindow();
|
|
|
|
CCallStackWnd* GetCallStackWindow();
|
2006-06-15 04:19:30 +00:00
|
|
|
|
2012-05-24 05:57:31 +00:00
|
|
|
void Step();
|
|
|
|
const char* GetName() const;
|
|
|
|
void Hide();
|
|
|
|
CBiosDebugInfoProvider* GetBiosDebugInfoProvider() const;
|
2006-06-15 04:19:30 +00:00
|
|
|
|
|
|
|
protected:
|
2012-05-24 05:57:31 +00:00
|
|
|
void OnCallStackWndFunctionDblClick(uint32);
|
2006-06-15 04:19:30 +00:00
|
|
|
|
|
|
|
private:
|
2012-05-24 05:57:31 +00:00
|
|
|
std::string m_name;
|
|
|
|
|
|
|
|
CVirtualMachine& m_virtualMachine;
|
2013-10-27 06:18:10 +00:00
|
|
|
CMIPS* m_ctx;
|
|
|
|
CDisAsmWnd* m_disAsmWnd;
|
|
|
|
CMemoryViewMIPSWnd* m_memoryViewWnd;
|
|
|
|
CRegViewWnd* m_regViewWnd;
|
|
|
|
CCallStackWnd* m_callStackWnd;
|
2012-05-24 05:57:31 +00:00
|
|
|
StepFunction m_stepFunction;
|
|
|
|
CBiosDebugInfoProvider* m_biosDebugInfoProvider;
|
2006-06-15 04:19:30 +00:00
|
|
|
};
|