-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathDisasmView.h
58 lines (45 loc) · 999 Bytes
/
DisasmView.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#pragma once
#include <QDockWidget>
#include "DisasmDlg.h"
#include "Debugger.h"
class CDisasmView : public QDockWidget
{
Q_OBJECT
public:
CDisasmView(QWidget *parent = nullptr);
virtual ~CDisasmView();
protected:
void keyPressEvent(QKeyEvent *event) Q_DECL_OVERRIDE;
signals:
void DebugBreak();
void DebugStepinto();
void DebugStepover();
void DebugStepout();
#ifdef ENABLE_BACKTRACE
void DebugStepback();
void DebugStepbackOver();
void DebugBTReset();
void DebugBTRewindToTail();
#endif
private:
CDisasmDlg *m_pDisasmDlg;
CDebugger *m_pDebugger;
public:
void AttachDebugger(CDebugger *pDebugger);
void SetAddr(u_int16_t addr)
{
m_pDisasmDlg->OnDisasmCurrentAddressChange(addr);
}
void Update() {
if(!isHidden()) {
update();
}
}
void Toggle()
{
if(isHidden())
show();
else
hide();
}
};