Last change
on this file since 94 was 88, checked in by dai_9181, 18 years ago |
House→Smoothie
Sourceクラスを用意した。
|
File size:
1.5 KB
|
Rev | Line | |
---|
[4] | 1 |
|
---|
| 2 | class CDebugSection{
|
---|
| 3 | public:
|
---|
| 4 | char szNowFilePath[MAX_PATH];
|
---|
| 5 |
|
---|
| 6 | char *buffer;
|
---|
| 7 | int length;
|
---|
| 8 |
|
---|
| 9 |
|
---|
| 10 | ////////////////////////////////////
|
---|
| 11 | // デバッグ用の固有情報
|
---|
| 12 |
|
---|
| 13 | //イメージベース
|
---|
| 14 | DWORD dwImageBase;
|
---|
| 15 |
|
---|
| 16 | //リライタブルセクションのRVA
|
---|
| 17 | DWORD dwRVA_RWSection;
|
---|
| 18 |
|
---|
| 19 | //コードセクションのRAVとサイズ
|
---|
| 20 | DWORD dwRVA_CodeSection;
|
---|
| 21 | int SizeOf_CodeSection;
|
---|
| 22 |
|
---|
| 23 | //インクルード情報
|
---|
| 24 | INCLUDEFILEINFO IncludeFileInfo;
|
---|
| 25 |
|
---|
| 26 | //ソースコード
|
---|
[88] | 27 | BasicSource source;
|
---|
[4] | 28 |
|
---|
| 29 | //コードと行番号の関係
|
---|
| 30 | int MaxLineInfoNum;
|
---|
| 31 | LINEINFO *pLineInfo;
|
---|
| 32 |
|
---|
| 33 | // クラス情報
|
---|
| 34 | CDBClass *pobj_DBClass;
|
---|
| 35 |
|
---|
| 36 | //定数を取得
|
---|
| 37 | CONSTINFO **ppConstHash;
|
---|
| 38 |
|
---|
| 39 | //グローバル実行領域のサイズ
|
---|
| 40 | int GlobalOpBufferSize;
|
---|
| 41 |
|
---|
| 42 | //プロシージャ
|
---|
[75] | 43 | UserProc **ppSubHash;
|
---|
[4] | 44 | int SubNum;
|
---|
| 45 |
|
---|
[75] | 46 | UserProc *pSub_DebugSys_EndProc;
|
---|
[4] | 47 |
|
---|
| 48 | //ネイティブコードバッファ
|
---|
| 49 | char *OpBuffer;
|
---|
| 50 |
|
---|
| 51 | //シングルステップ用コードバッファ
|
---|
| 52 | char *SingleStepCodeBuffer;
|
---|
| 53 |
|
---|
| 54 | //ブレークポイント用コードバッファ
|
---|
| 55 | char *BreakStepCodeBuffer;
|
---|
| 56 |
|
---|
| 57 |
|
---|
| 58 | ////////////////////////////////////
|
---|
| 59 |
|
---|
| 60 |
|
---|
| 61 | CDebugSection();
|
---|
| 62 | ~CDebugSection();
|
---|
| 63 |
|
---|
| 64 | void make(void);
|
---|
| 65 | private:
|
---|
| 66 | void UpdateBreakPoint(void);
|
---|
| 67 | char *MakeSingleStepCode(void);
|
---|
| 68 | BOOL __load(void);
|
---|
| 69 | public:
|
---|
| 70 | BOOL load(HMODULE hModule);
|
---|
| 71 |
|
---|
| 72 | void choice(void);
|
---|
| 73 |
|
---|
| 74 | void DeleteDebugInfo(void);
|
---|
| 75 | };
|
---|
| 76 |
|
---|
| 77 | class CDBDebugSection{
|
---|
| 78 | public:
|
---|
| 79 | CDebugSection **ppobj_ds;
|
---|
| 80 | int num;
|
---|
| 81 |
|
---|
| 82 | CDebugSection *pobj_now;
|
---|
| 83 |
|
---|
| 84 | CDBDebugSection();
|
---|
| 85 | ~CDBDebugSection();
|
---|
| 86 |
|
---|
| 87 | BOOL add(HMODULE hModule);
|
---|
| 88 | void del(HMODULE hModule);
|
---|
| 89 |
|
---|
| 90 | void choice(int index);
|
---|
| 91 |
|
---|
| 92 | };
|
---|
| 93 |
|
---|
| 94 | extern CDBDebugSection *pobj_DBDebugSection;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.