1 | |
---|
2 | class CDebugger{ |
---|
3 | BOOL bDebugging; |
---|
4 | public: |
---|
5 | HWND hwnd; |
---|
6 | |
---|
7 | CDebugger::CDebugger(); |
---|
8 | CDebugger::~CDebugger(); |
---|
9 | |
---|
10 | BOOL IsDebugging(void); |
---|
11 | BOOL IsDebuggerView(void); |
---|
12 | |
---|
13 | void resize(int x,int y,int cx,int cy); |
---|
14 | |
---|
15 | void ResetCommandEnabled(void); |
---|
16 | |
---|
17 | void SaftyCheck(void); |
---|
18 | |
---|
19 | void begin(void); |
---|
20 | void end(void); |
---|
21 | void watch_start(HWND hDebuggerView); |
---|
22 | void watch_quit(void); |
---|
23 | |
---|
24 | |
---|
25 | ///////////////////////////////// |
---|
26 | // イベントによるアプリ間通信 |
---|
27 | ///////////////////////////////// |
---|
28 | |
---|
29 | void DebugContinue(void); |
---|
30 | void StepIn(void); |
---|
31 | void StepOver(void); |
---|
32 | void StepToCursor(void); |
---|
33 | |
---|
34 | void DebugStop(void); |
---|
35 | void DebugPause(void); |
---|
36 | }; |
---|
37 | |
---|
38 | extern CDebugger *pobj_Debugger; |
---|
39 | |
---|
40 | |
---|
41 | |
---|
42 | |
---|
43 | |
---|
44 | ///////////////////////////////// |
---|
45 | // ブレークポイント |
---|
46 | ///////////////////////////////// |
---|
47 | |
---|
48 | class BreakPointsPerFile{ |
---|
49 | public: |
---|
50 | char *lpszFileName; |
---|
51 | |
---|
52 | int *piLine; |
---|
53 | int num; |
---|
54 | |
---|
55 | BreakPointsPerFile(const char *lpszFileName,int iLineNum); |
---|
56 | ~BreakPointsPerFile(); |
---|
57 | |
---|
58 | void add(int iLineNum); |
---|
59 | void remove(int iLineNum); |
---|
60 | |
---|
61 | BOOL check(int iLineNum); |
---|
62 | |
---|
63 | void replace(LPSTR lpszBuffer,CHARRANGE *pDelRange,CHARRANGE *pRange,LPSTR lpszNewStr); |
---|
64 | }; |
---|
65 | |
---|
66 | class CDBBreakPoint{ |
---|
67 | BreakPointsPerFile **ppItem; |
---|
68 | int num; |
---|
69 | |
---|
70 | public: |
---|
71 | CDBBreakPoint(); |
---|
72 | ~CDBBreakPoint(); |
---|
73 | |
---|
74 | void insert( const char *lpszFileName,int iLineNum); |
---|
75 | void remove( const char *lpszFileName,int iLineNum); |
---|
76 | |
---|
77 | void Event_BreakPoint(void); |
---|
78 | void SaveToTempFile(void); |
---|
79 | |
---|
80 | BreakPointsPerFile *EnumLines(const char *lpszFilePath); |
---|
81 | |
---|
82 | void replace(const char *lpszFilePath,LPSTR lpszBuffer,CHARRANGE *pDelRange,CHARRANGE *pRange,LPSTR lpszNewStr); |
---|
83 | }; |
---|