source: dev/BasicCompiler_Common/debug.h@ 4

Last change on this file since 4 was 4, checked in by dai_9181, 17 years ago
File size: 713 bytes
Line 
1
2class CDebugThreadInfo{
3public:
4 //ソースコードポインタ
5 DWORD *lpdwCp;
6
7 //ネイティブコードポインタ
8 ULONG_PTR *lplpObp;
9
10 //スタックフレームベースポインタ
11 ULONG_PTR *lplpSpBase;
12
13 //プロシージャ呼び出し階層
14 int iProcLevel;
15
16 CDebugThreadInfo();
17 ~CDebugThreadInfo();
18
19 BOOL Reflesh(int ThreadNum);
20 void Free();
21};
22
23extern CDebugThreadInfo *pobj_dti;
24
25#define MAX_DEBUG_THREAD 256
26extern DWORD _DebugSys_dwThreadID[MAX_DEBUG_THREAD];
27extern HANDLE array_hDebugThread[MAX_DEBUG_THREAD];
28
29
30#ifdef _AMD64_
31#define EIP_RIP(Context) (Context).Rip
32#define SP_BASE(Context) (Context).Rsp
33#else
34#define EIP_RIP(Context) (Context).Eip
35#define SP_BASE(Context) (Context).Ebp
36#endif
Note: See TracBrowser for help on using the repository browser.