Revisited console support (got rid of old hacks and private editline
[wine] / debugger / intvar.h
1 /* -*- tab-width: 8; c-basic-offset: 4 -*- */
2
3 /* Wine internal debugger
4  * Definitionz for internal variables
5  * Eric Pouech (c) 2000
6  */
7
8    /* break handling */
9 INTERNAL_VAR(BreakAllThreadsStartup,    FALSE,          NULL,                   DEBUG_TypeIntConst)
10 INTERNAL_VAR(BreakOnCritSectTimeOut,    FALSE,          NULL,                   DEBUG_TypeIntConst)
11 INTERNAL_VAR(BreakOnAttach,             FALSE,          NULL,                   DEBUG_TypeIntConst)
12 INTERNAL_VAR(BreakOnFirstChance,        TRUE,           NULL,                   DEBUG_TypeIntConst)
13 INTERNAL_VAR(BreakOnDllLoad,            FALSE,          NULL,                   DEBUG_TypeIntConst)
14
15    /* output handling */
16 INTERNAL_VAR(ConChannelMask,            DBG_CHN_MESG,   NULL,                   DEBUG_TypeIntConst)
17 INTERNAL_VAR(StdChannelMask,            0,              NULL,                   DEBUG_TypeIntConst)
18 INTERNAL_VAR(UseXTerm,                  TRUE,           NULL,                   DEBUG_TypeIntConst)
19
20    /* debugging debugger */
21 INTERNAL_VAR(ExtDbgOnInvalidAddress,    FALSE,          NULL,                   DEBUG_TypeIntConst)
22
23    /* current process/thread */
24 INTERNAL_VAR(ThreadId,                  FALSE,          &DEBUG_CurrTid,         DEBUG_TypeIntConst)
25 INTERNAL_VAR(ProcessId,                 FALSE,          &DEBUG_CurrPid,         DEBUG_TypeIntConst)
26
27    /* context manipulation */
28 #ifdef __i386__
29 /* FIXME: 16 bit registers use imply that CPU is little endian, which is
30  * the case when running natively i386 code
31  */
32 INTERNAL_VAR(eip,                       0,              &DEBUG_context.Eip,     DEBUG_TypeIntConst)
33 INTERNAL_VAR(ip,                        0,              &DEBUG_context.Eip,     DEBUG_TypeShortUInt)
34 INTERNAL_VAR(pc,                        0,              &DEBUG_context.Eip,     DEBUG_TypeIntConst)
35 INTERNAL_VAR(flags,                     0,              &DEBUG_context.EFlags,  DEBUG_TypeIntConst)
36 INTERNAL_VAR(esp,                       0,              &DEBUG_context.Esp,     DEBUG_TypeIntConst)
37 INTERNAL_VAR(sp,                        0,              &DEBUG_context.Esp,     DEBUG_TypeShortUInt)
38 INTERNAL_VAR(eax,                       0,              &DEBUG_context.Eax,     DEBUG_TypeIntConst)
39 INTERNAL_VAR(ax,                        0,              &DEBUG_context.Eax,     DEBUG_TypeShortUInt)
40 INTERNAL_VAR(ebx,                       0,              &DEBUG_context.Ebx,     DEBUG_TypeIntConst)
41 INTERNAL_VAR(bx,                        0,              &DEBUG_context.Ebx,     DEBUG_TypeShortUInt)
42 INTERNAL_VAR(ecx,                       0,              &DEBUG_context.Ecx,     DEBUG_TypeIntConst)
43 INTERNAL_VAR(cx,                        0,              &DEBUG_context.Ecx,     DEBUG_TypeShortUInt)
44 INTERNAL_VAR(edx,                       0,              &DEBUG_context.Edx,     DEBUG_TypeIntConst)
45 INTERNAL_VAR(dx,                        0,              &DEBUG_context.Edx,     DEBUG_TypeShortUInt)
46 INTERNAL_VAR(esi,                       0,              &DEBUG_context.Esi,     DEBUG_TypeIntConst)
47 INTERNAL_VAR(si,                        0,              &DEBUG_context.Esi,     DEBUG_TypeShortUInt)
48 INTERNAL_VAR(edi,                       0,              &DEBUG_context.Edi,     DEBUG_TypeIntConst)
49 INTERNAL_VAR(di,                        0,              &DEBUG_context.Edi,     DEBUG_TypeShortUInt)
50 INTERNAL_VAR(ebp,                       0,              &DEBUG_context.Ebp,     DEBUG_TypeIntConst)
51 INTERNAL_VAR(bp,                        0,              &DEBUG_context.Ebp,     DEBUG_TypeShortUInt)
52 INTERNAL_VAR(es,                        0,              &DEBUG_context.SegEs,   DEBUG_TypeIntConst)
53 INTERNAL_VAR(ds,                        0,              &DEBUG_context.SegDs,   DEBUG_TypeIntConst)
54 INTERNAL_VAR(cs,                        0,              &DEBUG_context.SegCs,   DEBUG_TypeIntConst)
55 INTERNAL_VAR(ss,                        0,              &DEBUG_context.SegSs,   DEBUG_TypeIntConst)
56 INTERNAL_VAR(fs,                        0,              &DEBUG_context.SegFs,   DEBUG_TypeIntConst)
57 INTERNAL_VAR(gs,                        0,              &DEBUG_context.SegGs,   DEBUG_TypeIntConst)
58 #endif