source: dev/trunk/ab5.0/abdev/BasicCompiler_Common/DebugSection.h@ 637

Last change on this file since 637 was 636, checked in by dai_9181, 16 years ago

libファイルを跨ったテンプレート展開に対応。

File size: 1.8 KB
RevLine 
[182]1#pragma once
[4]2
3class CDebugSection{
4public:
5 char szNowFilePath[MAX_PATH];
6
7 char *buffer;
8 int length;
9
10
11 ////////////////////////////////////
12 // デバッグ用の固有情報
13
14 //イメージベース
15 DWORD dwImageBase;
16
17 //リライタブルセクションのRVA
18 DWORD dwRVA_RWSection;
19
20 //コードセクションのRAVとサイズ
21 DWORD dwRVA_CodeSection;
22 int SizeOf_CodeSection;
23
[263]24 // オブジェクトモジュール
25 ObjectModule objectModule;
26
[636]27 // オブジェクトモジュールリストに類似したソースコードリスト
28 BasicSources _sourcesLinkRelationalObjectModule;
29
[4]30 //コードと行番号の関係
[265]31 SourceLines _oldSourceLines;
[4]32
33 //グローバル実行領域のサイズ
34 int GlobalOpBufferSize;
35
[206]36 const UserProc *pSub_DebugSys_EndProc;
[4]37
38 //ネイティブコードバッファ
39 char *OpBuffer;
40
41 //シングルステップ用コードバッファ
42 char *SingleStepCodeBuffer;
43
44 //ブレークポイント用コードバッファ
45 char *BreakStepCodeBuffer;
46
47
48 ////////////////////////////////////
49
50
[206]51 CDebugSection()
52 : buffer( NULL )
53 , length( 0 )
54 , dwImageBase( 0 )
55 , dwRVA_RWSection( 0 )
56 , dwRVA_CodeSection( 0 )
57 , SizeOf_CodeSection( 0 )
58 , GlobalOpBufferSize( 0 )
59 , pSub_DebugSys_EndProc( NULL )
60 , OpBuffer( NULL )
61 , SingleStepCodeBuffer( NULL )
62 , BreakStepCodeBuffer( NULL )
63 {
64 szNowFilePath[0]=0;
65 }
[4]66 ~CDebugSection();
67
68 void make(void);
69private:
70 void UpdateBreakPoint(void);
71 char *MakeSingleStepCode(void);
72 BOOL __load(void);
73public:
74 BOOL load(HMODULE hModule);
75
76 void choice(void);
77
78 void DeleteDebugInfo(void);
79};
80
81class CDBDebugSection{
82public:
83 CDebugSection **ppobj_ds;
84 int num;
85
86 CDebugSection *pobj_now;
87
88 CDBDebugSection();
89 ~CDBDebugSection();
90
91 BOOL add(HMODULE hModule);
92 void del(HMODULE hModule);
93
94 void choice(int index);
95
96};
97
98extern CDBDebugSection *pobj_DBDebugSection;
Note: See TracBrowser for help on using the repository browser.