source: dev/trunk/ab5.0/abdev/BasicCompiler_Common/debug.h@ 625

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