ppsspp/Windows/Debugger/Debugger_Disasm.h

65 lines
1.6 KiB
C
Raw Normal View History

2012-11-01 16:19:01 +01:00
// NOTE: Apologies for the quality of this code, this is really from pre-opensource Dolphin - that is, 2003.
#pragma once
2012-11-01 16:19:01 +01:00
#include "Windows/W32Util/DialogManager.h"
#include "Windows/W32Util/TabControl.h"
#include "Windows/Debugger/CtrlDisasmView.h"
#include "Windows/Debugger/Debugger_Lists.h"
#include "Windows/Debugger/CPURegsInterface.h"
#include "Core/MIPS/MIPSDebugInterface.h"
#include "Core/Debugger/Breakpoints.h"
#include <vector>
2012-11-01 16:19:01 +01:00
#include "Common/CommonWindows.h"
2012-11-01 16:19:01 +01:00
class CDisasm : public Dialog
{
private:
2013-09-29 17:30:37 +02:00
int minWidth,minHeight;
2012-11-01 16:19:01 +01:00
DebugInterface *cpu;
u64 lastTicks;
2013-07-30 16:19:05 +02:00
HWND statusBarWnd;
2013-07-08 17:59:34 +02:00
CtrlBreakpointList* breakpointList;
2013-07-02 23:21:20 +02:00
CtrlThreadList* threadList;
2013-08-12 22:11:00 +02:00
CtrlStackTraceView* stackTraceView;
2014-01-27 00:35:16 +01:00
CtrlModuleList* moduleList;
TabControl* leftTabs;
TabControl* bottomTabs;
std::vector<BreakPoint> displayedBreakPoints_;
std::vector<MemCheck> displayedMemChecks_;
bool keepStatusBarText;
bool hideBottomTabs;
2012-11-01 16:19:01 +01:00
BOOL DlgProc(UINT message, WPARAM wParam, LPARAM lParam);
void UpdateSize(WORD width, WORD height);
void SavePosition();
2013-07-03 22:29:35 +02:00
void updateThreadLabel(bool clear);
void stepInto();
void stepOver();
2013-08-17 11:18:03 +02:00
void stepOut();
void runToLine();
2012-11-01 16:19:01 +01:00
public:
int index; //helper
CDisasm(HINSTANCE _hInstance, HWND _hParent, DebugInterface *cpu);
~CDisasm();
//
// --- tools ---
//
virtual void Update()
{
UpdateDialog(true);
SetDebugMode(Core_IsStepping(), false);
2013-09-29 11:19:13 +02:00
breakpointList->reloadBreakpoints();
};
2012-11-01 16:19:01 +01:00
void UpdateDialog(bool _bComplete = false);
// SetDebugMode
void SetDebugMode(bool _bDebug, bool switchPC);
2012-11-01 16:19:01 +01:00
// show dialog
void Goto(u32 addr);
void NotifyMapLoaded();
};