1 /* -*- tab-width: 8; c-basic-offset: 4 -*- */
3 /* Wine internal debugger
4 * Definitions for internal variables
5 * Copyright 2000 Eric Pouech
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2.1 of the License, or (at your option) any later version.
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this library; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
23 INTERNAL_VAR(BreakAllThreadsStartup
, FALSE
, NULL
, DT_BASIC_CONST_INT
)
24 INTERNAL_VAR(BreakOnCritSectTimeOut
, FALSE
, NULL
, DT_BASIC_CONST_INT
)
25 INTERNAL_VAR(BreakOnAttach
, FALSE
, NULL
, DT_BASIC_CONST_INT
)
26 INTERNAL_VAR(BreakOnFirstChance
, TRUE
, NULL
, DT_BASIC_CONST_INT
)
27 INTERNAL_VAR(BreakOnDllLoad
, FALSE
, NULL
, DT_BASIC_CONST_INT
)
30 INTERNAL_VAR(ConChannelMask
, DBG_CHN_MESG
, NULL
, DT_BASIC_CONST_INT
)
31 INTERNAL_VAR(StdChannelMask
, 0, NULL
, DT_BASIC_CONST_INT
)
32 INTERNAL_VAR(UseXTerm
, TRUE
, NULL
, DT_BASIC_CONST_INT
)
34 /* debugging debugger */
35 INTERNAL_VAR(ExtDbgOnInvalidAddress
, FALSE
, NULL
, DT_BASIC_CONST_INT
)
37 /* current process/thread */
38 INTERNAL_VAR(ThreadId
, FALSE
, &DEBUG_CurrTid
, DT_BASIC_CONST_INT
)
39 INTERNAL_VAR(ProcessId
, FALSE
, &DEBUG_CurrPid
, DT_BASIC_CONST_INT
)
41 /* context manipulation */
43 /* FIXME: 16 bit registers use imply that CPU is little endian, which is
44 * the case when running natively i386 code
46 INTERNAL_VAR(eip
, 0, &DEBUG_context
.Eip
, DT_BASIC_CONST_INT
)
47 INTERNAL_VAR(ip
, 0, &DEBUG_context
.Eip
, DT_BASIC_USHORTINT
)
48 INTERNAL_VAR(pc
, 0, &DEBUG_context
.Eip
, DT_BASIC_CONST_INT
)
49 INTERNAL_VAR(flags
, 0, &DEBUG_context
.EFlags
, DT_BASIC_CONST_INT
)
50 INTERNAL_VAR(esp
, 0, &DEBUG_context
.Esp
, DT_BASIC_CONST_INT
)
51 INTERNAL_VAR(sp
, 0, &DEBUG_context
.Esp
, DT_BASIC_USHORTINT
)
52 INTERNAL_VAR(eax
, 0, &DEBUG_context
.Eax
, DT_BASIC_CONST_INT
)
53 INTERNAL_VAR(ax
, 0, &DEBUG_context
.Eax
, DT_BASIC_USHORTINT
)
54 INTERNAL_VAR(ebx
, 0, &DEBUG_context
.Ebx
, DT_BASIC_CONST_INT
)
55 INTERNAL_VAR(bx
, 0, &DEBUG_context
.Ebx
, DT_BASIC_USHORTINT
)
56 INTERNAL_VAR(ecx
, 0, &DEBUG_context
.Ecx
, DT_BASIC_CONST_INT
)
57 INTERNAL_VAR(cx
, 0, &DEBUG_context
.Ecx
, DT_BASIC_USHORTINT
)
58 INTERNAL_VAR(edx
, 0, &DEBUG_context
.Edx
, DT_BASIC_CONST_INT
)
59 INTERNAL_VAR(dx
, 0, &DEBUG_context
.Edx
, DT_BASIC_USHORTINT
)
60 INTERNAL_VAR(esi
, 0, &DEBUG_context
.Esi
, DT_BASIC_CONST_INT
)
61 INTERNAL_VAR(si
, 0, &DEBUG_context
.Esi
, DT_BASIC_USHORTINT
)
62 INTERNAL_VAR(edi
, 0, &DEBUG_context
.Edi
, DT_BASIC_CONST_INT
)
63 INTERNAL_VAR(di
, 0, &DEBUG_context
.Edi
, DT_BASIC_USHORTINT
)
64 INTERNAL_VAR(ebp
, 0, &DEBUG_context
.Ebp
, DT_BASIC_CONST_INT
)
65 INTERNAL_VAR(bp
, 0, &DEBUG_context
.Ebp
, DT_BASIC_USHORTINT
)
66 INTERNAL_VAR(es
, 0, &DEBUG_context
.SegEs
, DT_BASIC_CONST_INT
)
67 INTERNAL_VAR(ds
, 0, &DEBUG_context
.SegDs
, DT_BASIC_CONST_INT
)
68 INTERNAL_VAR(cs
, 0, &DEBUG_context
.SegCs
, DT_BASIC_CONST_INT
)
69 INTERNAL_VAR(ss
, 0, &DEBUG_context
.SegSs
, DT_BASIC_CONST_INT
)
70 INTERNAL_VAR(fs
, 0, &DEBUG_context
.SegFs
, DT_BASIC_CONST_INT
)
71 INTERNAL_VAR(gs
, 0, &DEBUG_context
.SegGs
, DT_BASIC_CONST_INT
)