-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCryDisasmCtrl.h
65 lines (50 loc) · 1.58 KB
/
CryDisasmCtrl.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
58
59
60
61
62
63
64
65
#ifndef _CrySearch_CryDisasmCtrl_h_
#define _CrySearch_CryDisasmCtrl_h_
#include "CrySearchArrayCtrl.h"
#include "VirtualDropList.h"
#include "AsyncDisassembler.h"
// Disassembly control, which is used in a tab window. The opened process' code is disassembled
// and shown inside this control.
class CryDisasmCtrl : public ParentCtrl
{
private:
bool mHasPreceding;
bool mHasSucceeding;
AsyncDisassembler mAsyncHelper;
ToolBar mToolStrip;
CrySearchArrayCtrl disasmDisplay;
// Toolbar ctrls
Label mExecutablePagesDescriptor;
Label mPageSizeInDisasm;
void ExecutablePagesDropped();
void ExecutablePageSelected();
void ToolStrip(Bar& pBar);
void SetBreakpointMenu(Bar& pBar);
void DisassemblyRightClick(Bar& pBar);
void DisasmGenerateSubmenu(Bar& pBar);
void MoveToPreviousPage();
void MoveToNextPage();
void RemoveBreakpointButtonClicked();
void SetSoftwareBreakpoint();
void SetHardwareBreakpoint();
void GoToAddressButtonClicked();
void CopyCursorLineToClipboard();
void GenerateSignatureButtonClicked();
void GenerateByteArrayButtonClicked();
void NopSelectedCode();
void GoToEntryPointClicked();
void PeekDisasmCompletion();
void AsyncDisasmStarted();
virtual bool Key(dword key, int count);
typedef CryDisasmCtrl CLASSNAME;
public:
CryDisasmCtrl();
~CryDisasmCtrl();
void Initialize();
void ClearList();
void MoveToAddress(const SIZE_T address);
void UpdateToolbar();
};
// The debugger needs this function to retrieve the correct breakpoint after a single step has been made. (INT3)
const int GetDisasmLineIndexFromAddress(const SIZE_T address);
#endif