1 | /*
|
---|
2 | * File cvconst.h - MS debug information
|
---|
3 | *
|
---|
4 | * Copyright (C) 2004, Eric Pouech
|
---|
5 | *
|
---|
6 | * This library is free software; you can redistribute it and/or
|
---|
7 | * modify it under the terms of the GNU Lesser General Public
|
---|
8 | * License as published by the Free Software Foundation; either
|
---|
9 | * version 2.1 of the License, or (at your option) any later version.
|
---|
10 | *
|
---|
11 | * This library is distributed in the hope that it will be useful,
|
---|
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
---|
14 | * Lesser General Public License for more details.
|
---|
15 | *
|
---|
16 | * You should have received a copy of the GNU Lesser General Public
|
---|
17 | * License along with this library; if not, write to the Free Software
|
---|
18 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
---|
19 | */
|
---|
20 |
|
---|
21 | /*
|
---|
22 | * Sun LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
|
---|
23 | * other than GPL or LGPL is available it will apply instead, Sun elects to use only
|
---|
24 | * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
|
---|
25 | * a choice of LGPL license versions is made available with the language indicating
|
---|
26 | * that LGPLv2 or any later version may be used, or where a choice of which version
|
---|
27 | * of the LGPL is applied is otherwise unspecified.
|
---|
28 | */
|
---|
29 |
|
---|
30 | /* information in this file is highly derived from MSDN DIA information pages */
|
---|
31 |
|
---|
32 | /* symbols & types enumeration */
|
---|
33 | enum SymTagEnum
|
---|
34 | {
|
---|
35 | SymTagNull,
|
---|
36 | SymTagExe,
|
---|
37 | SymTagCompiland,
|
---|
38 | SymTagCompilandDetails,
|
---|
39 | SymTagCompilandEnv,
|
---|
40 | SymTagFunction,
|
---|
41 | SymTagBlock,
|
---|
42 | SymTagData,
|
---|
43 | SymTagAnnotation,
|
---|
44 | SymTagLabel,
|
---|
45 | SymTagPublicSymbol,
|
---|
46 | SymTagUDT,
|
---|
47 | SymTagEnum,
|
---|
48 | SymTagFunctionType,
|
---|
49 | SymTagPointerType,
|
---|
50 | SymTagArrayType,
|
---|
51 | SymTagBaseType,
|
---|
52 | SymTagTypedef,
|
---|
53 | SymTagBaseClass,
|
---|
54 | SymTagFriend,
|
---|
55 | SymTagFunctionArgType,
|
---|
56 | SymTagFuncDebugStart,
|
---|
57 | SymTagFuncDebugEnd,
|
---|
58 | SymTagUsingNamespace,
|
---|
59 | SymTagVTableShape,
|
---|
60 | SymTagVTable,
|
---|
61 | SymTagCustom,
|
---|
62 | SymTagThunk,
|
---|
63 | SymTagCustomType,
|
---|
64 | SymTagManagedType,
|
---|
65 | SymTagDimension,
|
---|
66 | SymTagMax
|
---|
67 | };
|
---|
68 |
|
---|
69 | enum BasicType
|
---|
70 | {
|
---|
71 | btNoType = 0,
|
---|
72 | btVoid = 1,
|
---|
73 | btChar = 2,
|
---|
74 | btWChar = 3,
|
---|
75 | btInt = 6,
|
---|
76 | btUInt = 7,
|
---|
77 | btFloat = 8,
|
---|
78 | btBCD = 9,
|
---|
79 | btBool = 10,
|
---|
80 | btLong = 13,
|
---|
81 | btULong = 14,
|
---|
82 | btCurrency = 25,
|
---|
83 | btDate = 26,
|
---|
84 | btVariant = 27,
|
---|
85 | btComplex = 28,
|
---|
86 | btBit = 29,
|
---|
87 | btBSTR = 30,
|
---|
88 | btHresult = 31,
|
---|
89 | };
|
---|
90 |
|
---|
91 | /* kind of UDT */
|
---|
92 | enum UdtKind
|
---|
93 | {
|
---|
94 | UdtStruct,
|
---|
95 | UdtClass,
|
---|
96 | UdtUnion
|
---|
97 | };
|
---|
98 |
|
---|
99 | /* where a SymTagData is */
|
---|
100 | enum LocationType
|
---|
101 | {
|
---|
102 | LocIsNull,
|
---|
103 | LocIsStatic,
|
---|
104 | LocIsTLS,
|
---|
105 | LocIsRegRel,
|
---|
106 | LocIsThisRel,
|
---|
107 | LocIsEnregistered,
|
---|
108 | LocIsBitField,
|
---|
109 | LocIsSlot,
|
---|
110 | LocIsIlRel,
|
---|
111 | LocInMetaData,
|
---|
112 | LocIsConstant
|
---|
113 | };
|
---|
114 |
|
---|
115 | /* kind of SymTagData */
|
---|
116 | enum DataKind
|
---|
117 | {
|
---|
118 | DataIsUnknown,
|
---|
119 | DataIsLocal,
|
---|
120 | DataIsStaticLocal,
|
---|
121 | DataIsParam,
|
---|
122 | DataIsObjectPtr,
|
---|
123 | DataIsFileStatic,
|
---|
124 | DataIsGlobal,
|
---|
125 | DataIsMember,
|
---|
126 | DataIsStaticMember,
|
---|
127 | DataIsConstant
|
---|
128 | };
|
---|
129 |
|
---|
130 | /* values for registers (on different CPUs) */
|
---|
131 | enum CV_HREG_e
|
---|
132 | {
|
---|
133 | /* those values are common to all supported CPUs (and CPU independent) */
|
---|
134 | CV_ALLREG_ERR = 30000,
|
---|
135 | CV_ALLREG_TEB = 30001,
|
---|
136 | CV_ALLREG_TIMER = 30002,
|
---|
137 | CV_ALLREG_EFAD1 = 30003,
|
---|
138 | CV_ALLREG_EFAD2 = 30004,
|
---|
139 | CV_ALLREG_EFAD3 = 30005,
|
---|
140 | CV_ALLREG_VFRAME = 30006,
|
---|
141 | CV_ALLREG_HANDLE = 30007,
|
---|
142 | CV_ALLREG_PARAMS = 30008,
|
---|
143 | CV_ALLREG_LOCALS = 30009,
|
---|
144 |
|
---|
145 | /* Intel x86 CPU */
|
---|
146 | CV_REG_NONE = 0,
|
---|
147 | CV_REG_AL = 1,
|
---|
148 | CV_REG_CL = 2,
|
---|
149 | CV_REG_DL = 3,
|
---|
150 | CV_REG_BL = 4,
|
---|
151 | CV_REG_AH = 5,
|
---|
152 | CV_REG_CH = 6,
|
---|
153 | CV_REG_DH = 7,
|
---|
154 | CV_REG_BH = 8,
|
---|
155 | CV_REG_AX = 9,
|
---|
156 | CV_REG_CX = 10,
|
---|
157 | CV_REG_DX = 11,
|
---|
158 | CV_REG_BX = 12,
|
---|
159 | CV_REG_SP = 13,
|
---|
160 | CV_REG_BP = 14,
|
---|
161 | CV_REG_SI = 15,
|
---|
162 | CV_REG_DI = 16,
|
---|
163 | CV_REG_EAX = 17,
|
---|
164 | CV_REG_ECX = 18,
|
---|
165 | CV_REG_EDX = 19,
|
---|
166 | CV_REG_EBX = 20,
|
---|
167 | CV_REG_ESP = 21,
|
---|
168 | CV_REG_EBP = 22,
|
---|
169 | CV_REG_ESI = 23,
|
---|
170 | CV_REG_EDI = 24,
|
---|
171 | CV_REG_ES = 25,
|
---|
172 | CV_REG_CS = 26,
|
---|
173 | CV_REG_SS = 27,
|
---|
174 | CV_REG_DS = 28,
|
---|
175 | CV_REG_FS = 29,
|
---|
176 | CV_REG_GS = 30,
|
---|
177 | CV_REG_IP = 31,
|
---|
178 | CV_REG_FLAGS = 32,
|
---|
179 | CV_REG_EIP = 33,
|
---|
180 | CV_REG_EFLAGS = 34,
|
---|
181 |
|
---|
182 | /* <pcode> */
|
---|
183 | CV_REG_TEMP = 40,
|
---|
184 | CV_REG_TEMPH = 41,
|
---|
185 | CV_REG_QUOTE = 42,
|
---|
186 | CV_REG_PCDR3 = 43, /* this includes PCDR4 to PCDR7 */
|
---|
187 | CV_REG_CR0 = 80, /* this includes CR1 to CR4 */
|
---|
188 | CV_REG_DR0 = 90, /* this includes DR1 to DR7 */
|
---|
189 | /* </pcode> */
|
---|
190 |
|
---|
191 | CV_REG_GDTR = 110,
|
---|
192 | CV_REG_GDTL = 111,
|
---|
193 | CV_REG_IDTR = 112,
|
---|
194 | CV_REG_IDTL = 113,
|
---|
195 | CV_REG_LDTR = 114,
|
---|
196 | CV_REG_TR = 115,
|
---|
197 |
|
---|
198 | CV_REG_PSEUDO1 = 116, /* this includes Pseudo02 to Pseudo09 */
|
---|
199 | CV_REG_ST0 = 128, /* this includes ST1 to ST7 */
|
---|
200 | CV_REG_CTRL = 136,
|
---|
201 | CV_REG_STAT = 137,
|
---|
202 | CV_REG_TAG = 138,
|
---|
203 | CV_REG_FPIP = 139,
|
---|
204 | CV_REG_FPCS = 140,
|
---|
205 | CV_REG_FPDO = 141,
|
---|
206 | CV_REG_FPDS = 142,
|
---|
207 | CV_REG_ISEM = 143,
|
---|
208 | CV_REG_FPEIP = 144,
|
---|
209 | CV_REG_FPEDO = 145,
|
---|
210 | CV_REG_MM0 = 146, /* this includes MM1 to MM7 */
|
---|
211 | CV_REG_XMM0 = 154, /* this includes XMM1 to XMM7 */
|
---|
212 | CV_REG_XMM00 = 162,
|
---|
213 | CV_REG_XMM0L = 194, /* this includes XMM1L to XMM7L */
|
---|
214 | CV_REG_XMM0H = 202, /* this includes XMM1H to XMM7H */
|
---|
215 | CV_REG_MXCSR = 211,
|
---|
216 | CV_REG_EDXEAX = 212,
|
---|
217 | CV_REG_EMM0L = 220,
|
---|
218 | CV_REG_EMM0H = 228,
|
---|
219 | CV_REG_MM00 = 236,
|
---|
220 | CV_REG_MM01 = 237,
|
---|
221 | CV_REG_MM10 = 238,
|
---|
222 | CV_REG_MM11 = 239,
|
---|
223 | CV_REG_MM20 = 240,
|
---|
224 | CV_REG_MM21 = 241,
|
---|
225 | CV_REG_MM30 = 242,
|
---|
226 | CV_REG_MM31 = 243,
|
---|
227 | CV_REG_MM40 = 244,
|
---|
228 | CV_REG_MM41 = 245,
|
---|
229 | CV_REG_MM50 = 246,
|
---|
230 | CV_REG_MM51 = 247,
|
---|
231 | CV_REG_MM60 = 248,
|
---|
232 | CV_REG_MM61 = 249,
|
---|
233 | CV_REG_MM70 = 250,
|
---|
234 | CV_REG_MM71 = 251,
|
---|
235 |
|
---|
236 | /* Motorola 68K CPU */
|
---|
237 | CV_R68_D0 = 0, /* this includes D1 to D7 too */
|
---|
238 | CV_R68_A0 = 8, /* this includes A1 to A7 too */
|
---|
239 | CV_R68_CCR = 16,
|
---|
240 | CV_R68_SR = 17,
|
---|
241 | CV_R68_USP = 18,
|
---|
242 | CV_R68_MSP = 19,
|
---|
243 | CV_R68_SFC = 20,
|
---|
244 | CV_R68_DFC = 21,
|
---|
245 | CV_R68_CACR = 22,
|
---|
246 | CV_R68_VBR = 23,
|
---|
247 | CV_R68_CAAR = 24,
|
---|
248 | CV_R68_ISP = 25,
|
---|
249 | CV_R68_PC = 26,
|
---|
250 | CV_R68_FPCR = 28,
|
---|
251 | CV_R68_FPSR = 29,
|
---|
252 | CV_R68_FPIAR = 30,
|
---|
253 | CV_R68_FP0 = 32, /* this includes FP1 to FP7 */
|
---|
254 | CV_R68_MMUSR030 = 41,
|
---|
255 | CV_R68_MMUSR = 42,
|
---|
256 | CV_R68_URP = 43,
|
---|
257 | CV_R68_DTT0 = 44,
|
---|
258 | CV_R68_DTT1 = 45,
|
---|
259 | CV_R68_ITT0 = 46,
|
---|
260 | CV_R68_ITT1 = 47,
|
---|
261 | CV_R68_PSR = 51,
|
---|
262 | CV_R68_PCSR = 52,
|
---|
263 | CV_R68_VAL = 53,
|
---|
264 | CV_R68_CRP = 54,
|
---|
265 | CV_R68_SRP = 55,
|
---|
266 | CV_R68_DRP = 56,
|
---|
267 | CV_R68_TC = 57,
|
---|
268 | CV_R68_AC = 58,
|
---|
269 | CV_R68_SCC = 59,
|
---|
270 | CV_R68_CAL = 60,
|
---|
271 | CV_R68_TT0 = 61,
|
---|
272 | CV_R68_TT1 = 62,
|
---|
273 | CV_R68_BAD0 = 64, /* this includes BAD1 to BAD7 */
|
---|
274 | CV_R68_BAC0 = 72, /* this includes BAC1 to BAC7 */
|
---|
275 |
|
---|
276 | /* MIPS 4000 CPU */
|
---|
277 | CV_M4_NOREG = CV_REG_NONE,
|
---|
278 | CV_M4_IntZERO = 10,
|
---|
279 | CV_M4_IntAT = 11,
|
---|
280 | CV_M4_IntV0 = 12,
|
---|
281 | CV_M4_IntV1 = 13,
|
---|
282 | CV_M4_IntA0 = 14, /* this includes IntA1 to IntA3 */
|
---|
283 | CV_M4_IntT0 = 18, /* this includes IntT1 to IntT7 */
|
---|
284 | CV_M4_IntS0 = 26, /* this includes IntS1 to IntS7 */
|
---|
285 | CV_M4_IntT8 = 34,
|
---|
286 | CV_M4_IntT9 = 35,
|
---|
287 | CV_M4_IntKT0 = 36,
|
---|
288 | CV_M4_IntKT1 = 37,
|
---|
289 | CV_M4_IntGP = 38,
|
---|
290 | CV_M4_IntSP = 39,
|
---|
291 | CV_M4_IntS8 = 40,
|
---|
292 | CV_M4_IntRA = 41,
|
---|
293 | CV_M4_IntLO = 42,
|
---|
294 | CV_M4_IntHI = 43,
|
---|
295 | CV_M4_Fir = 50,
|
---|
296 | CV_M4_Psr = 51,
|
---|
297 | CV_M4_FltF0 = 60, /* this includes FltF1 to Flt31 */
|
---|
298 | CV_M4_FltFsr = 92,
|
---|
299 |
|
---|
300 | /* Alpha AXP CPU */
|
---|
301 | CV_ALPHA_NOREG = CV_REG_NONE,
|
---|
302 | CV_ALPHA_FltF0 = 10, /* this includes FltF1 to FltF31 */
|
---|
303 | CV_ALPHA_IntV0 = 42,
|
---|
304 | CV_ALPHA_IntT0 = 43, /* this includes T1 to T7 */
|
---|
305 | CV_ALPHA_IntS0 = 51, /* this includes S1 to S5 */
|
---|
306 | CV_ALPHA_IntFP = 57,
|
---|
307 | CV_ALPHA_IntA0 = 58, /* this includes A1 to A5 */
|
---|
308 | CV_ALPHA_IntT8 = 64,
|
---|
309 | CV_ALPHA_IntT9 = 65,
|
---|
310 | CV_ALPHA_IntT10 = 66,
|
---|
311 | CV_ALPHA_IntT11 = 67,
|
---|
312 | CV_ALPHA_IntRA = 68,
|
---|
313 | CV_ALPHA_IntT12 = 69,
|
---|
314 | CV_ALPHA_IntAT = 70,
|
---|
315 | CV_ALPHA_IntGP = 71,
|
---|
316 | CV_ALPHA_IntSP = 72,
|
---|
317 | CV_ALPHA_IntZERO = 73,
|
---|
318 | CV_ALPHA_Fpcr = 74,
|
---|
319 | CV_ALPHA_Fir = 75,
|
---|
320 | CV_ALPHA_Psr = 76,
|
---|
321 | CV_ALPHA_FltFsr = 77,
|
---|
322 | CV_ALPHA_SoftFpcr = 78,
|
---|
323 |
|
---|
324 | /* Motorola & IBM PowerPC CPU */
|
---|
325 | CV_PPC_GPR0 = 1, /* this includes GPR1 to GPR31 */
|
---|
326 | CV_PPC_CR = 33,
|
---|
327 | CV_PPC_CR0 = 34, /* this includes CR1 to CR7 */
|
---|
328 | CV_PPC_FPR0 = 42, /* this includes FPR1 to FPR31 */
|
---|
329 |
|
---|
330 | CV_PPC_FPSCR = 74,
|
---|
331 | CV_PPC_MSR = 75,
|
---|
332 | CV_PPC_SR0 = 76, /* this includes SR1 to SR15 */
|
---|
333 | /* some PPC registers missing */
|
---|
334 |
|
---|
335 | /* Hitachi SH3 CPU */
|
---|
336 | CV_SH3_NOREG = CV_REG_NONE,
|
---|
337 | CV_SH3_IntR0 = 10, /* this include R1 to R13 */
|
---|
338 | CV_SH3_IntFp = 24,
|
---|
339 | CV_SH3_IntSp = 25,
|
---|
340 | CV_SH3_Gbr = 38,
|
---|
341 | CV_SH3_Pr = 39,
|
---|
342 | CV_SH3_Mach = 40,
|
---|
343 | CV_SH3_Macl = 41,
|
---|
344 | CV_SH3_Pc = 50,
|
---|
345 | CV_SH3_Sr = 51,
|
---|
346 | CV_SH3_BarA = 60,
|
---|
347 | CV_SH3_BasrA = 61,
|
---|
348 | CV_SH3_BamrA = 62,
|
---|
349 | CV_SH3_BbrA = 63,
|
---|
350 | CV_SH3_BarB = 64,
|
---|
351 | CV_SH3_BasrB = 65,
|
---|
352 | CV_SH3_BamrB = 66,
|
---|
353 | CV_SH3_BbrB = 67,
|
---|
354 | CV_SH3_BdrB = 68,
|
---|
355 | CV_SH3_BdmrB = 69,
|
---|
356 | CV_SH3_Brcr = 70,
|
---|
357 | CV_SH_Fpscr = 75,
|
---|
358 | CV_SH_Fpul = 76,
|
---|
359 | CV_SH_FpR0 = 80, /* this includes FpR1 to FpR15 */
|
---|
360 | CV_SH_XFpR0 = 96, /* this includes XFpR1 to XXFpR15 */
|
---|
361 |
|
---|
362 | /* ARM CPU */
|
---|
363 | CV_ARM_NOREG = CV_REG_NONE,
|
---|
364 | CV_ARM_R0 = 10, /* this includes R1 to R12 */
|
---|
365 | CV_ARM_SP = 23,
|
---|
366 | CV_ARM_LR = 24,
|
---|
367 | CV_ARM_PC = 25,
|
---|
368 | CV_ARM_CPSR = 26,
|
---|
369 |
|
---|
370 | /* Intel IA64 CPU */
|
---|
371 | CV_IA64_NOREG = CV_REG_NONE,
|
---|
372 | CV_IA64_Br0 = 512, /* this includes Br1 to Br7 */
|
---|
373 | CV_IA64_P0 = 704, /* this includes P1 to P63 */
|
---|
374 | CV_IA64_Preds = 768,
|
---|
375 | CV_IA64_IntH0 = 832, /* this includes H1 to H15 */
|
---|
376 | CV_IA64_Ip = 1016,
|
---|
377 | CV_IA64_Umask = 1017,
|
---|
378 | CV_IA64_Cfm = 1018,
|
---|
379 | CV_IA64_Psr = 1019,
|
---|
380 | CV_IA64_Nats = 1020,
|
---|
381 | CV_IA64_Nats2 = 1021,
|
---|
382 | CV_IA64_Nats3 = 1022,
|
---|
383 | CV_IA64_IntR0 = 1024, /* this includes R1 to R127 */
|
---|
384 | CV_IA64_FltF0 = 2048, /* this includes FltF1 to FltF127 */
|
---|
385 | /* some IA64 registers missing */
|
---|
386 |
|
---|
387 | /* TriCore CPU */
|
---|
388 | CV_TRI_NOREG = CV_REG_NONE,
|
---|
389 | CV_TRI_D0 = 10, /* includes D1 to D15 */
|
---|
390 | CV_TRI_A0 = 26, /* includes A1 to A15 */
|
---|
391 | CV_TRI_E0 = 42,
|
---|
392 | CV_TRI_E2 = 43,
|
---|
393 | CV_TRI_E4 = 44,
|
---|
394 | CV_TRI_E6 = 45,
|
---|
395 | CV_TRI_E8 = 46,
|
---|
396 | CV_TRI_E10 = 47,
|
---|
397 | CV_TRI_E12 = 48,
|
---|
398 | CV_TRI_E14 = 49,
|
---|
399 | CV_TRI_EA0 = 50,
|
---|
400 | CV_TRI_EA2 = 51,
|
---|
401 | CV_TRI_EA4 = 52,
|
---|
402 | CV_TRI_EA6 = 53,
|
---|
403 | CV_TRI_EA8 = 54,
|
---|
404 | CV_TRI_EA10 = 55,
|
---|
405 | CV_TRI_EA12 = 56,
|
---|
406 | CV_TRI_EA14 = 57,
|
---|
407 | /* some TriCode registers missing */
|
---|
408 |
|
---|
409 | /* AM33 (and the likes) CPU */
|
---|
410 | CV_AM33_NOREG = CV_REG_NONE,
|
---|
411 | CV_AM33_E0 = 10, /* this includes E1 to E7 */
|
---|
412 | CV_AM33_A0 = 20, /* this includes A1 to A3 */
|
---|
413 | CV_AM33_D0 = 30, /* this includes D1 to D3 */
|
---|
414 | CV_AM33_FS0 = 40, /* this includes FS1 to FS31 */
|
---|
415 |
|
---|
416 | /* Mitsubishi M32R CPU */
|
---|
417 | CV_M32R_NOREG = CV_REG_NONE,
|
---|
418 | CV_M32R_R0 = 10, /* this includes R1 to R11 */
|
---|
419 | CV_M32R_R12 = 22,
|
---|
420 | CV_M32R_R13 = 23,
|
---|
421 | CV_M32R_R14 = 24,
|
---|
422 | CV_M32R_R15 = 25,
|
---|
423 | CV_M32R_PSW = 26,
|
---|
424 | CV_M32R_CBR = 27,
|
---|
425 | CV_M32R_SPI = 28,
|
---|
426 | CV_M32R_SPU = 29,
|
---|
427 | CV_M32R_SPO = 30,
|
---|
428 | CV_M32R_BPC = 31,
|
---|
429 | CV_M32R_ACHI = 32,
|
---|
430 | CV_M32R_ACLO = 33,
|
---|
431 | CV_M32R_PC = 34,
|
---|
432 |
|
---|
433 | /* AMD/Intel x86_64 CPU */
|
---|
434 | CV_AMD64_NONE = CV_REG_NONE,
|
---|
435 | CV_AMD64_AL = CV_REG_AL,
|
---|
436 | CV_AMD64_CL = CV_REG_CL,
|
---|
437 | CV_AMD64_DL = CV_REG_DL,
|
---|
438 | CV_AMD64_BL = CV_REG_BL,
|
---|
439 | CV_AMD64_AH = CV_REG_AH,
|
---|
440 | CV_AMD64_CH = CV_REG_CH,
|
---|
441 | CV_AMD64_DH = CV_REG_DH,
|
---|
442 | CV_AMD64_BH = CV_REG_BH,
|
---|
443 | CV_AMD64_AX = CV_REG_AX,
|
---|
444 | CV_AMD64_CX = CV_REG_CX,
|
---|
445 | CV_AMD64_DX = CV_REG_DX,
|
---|
446 | CV_AMD64_BX = CV_REG_BX,
|
---|
447 | CV_AMD64_SP = CV_REG_SP,
|
---|
448 | CV_AMD64_BP = CV_REG_BP,
|
---|
449 | CV_AMD64_SI = CV_REG_SI,
|
---|
450 | CV_AMD64_DI = CV_REG_DI,
|
---|
451 | CV_AMD64_EAX = CV_REG_EAX,
|
---|
452 | CV_AMD64_ECX = CV_REG_ECX,
|
---|
453 | CV_AMD64_EDX = CV_REG_EDX,
|
---|
454 | CV_AMD64_EBX = CV_REG_EBX,
|
---|
455 | CV_AMD64_ESP = CV_REG_ESP,
|
---|
456 | CV_AMD64_EBP = CV_REG_EBP,
|
---|
457 | CV_AMD64_ESI = CV_REG_ESI,
|
---|
458 | CV_AMD64_EDI = CV_REG_EDI,
|
---|
459 | CV_AMD64_ES = CV_REG_ES,
|
---|
460 | CV_AMD64_CS = CV_REG_CS,
|
---|
461 | CV_AMD64_SS = CV_REG_SS,
|
---|
462 | CV_AMD64_DS = CV_REG_DS,
|
---|
463 | CV_AMD64_FS = CV_REG_FS,
|
---|
464 | CV_AMD64_GS = CV_REG_GS,
|
---|
465 | CV_AMD64_FLAGS = CV_REG_FLAGS,
|
---|
466 | CV_AMD64_RIP = CV_REG_EIP,
|
---|
467 | CV_AMD64_EFLAGS = CV_REG_EFLAGS,
|
---|
468 |
|
---|
469 | /* <pcode> */
|
---|
470 | CV_AMD64_TEMP = CV_REG_TEMP,
|
---|
471 | CV_AMD64_TEMPH = CV_REG_TEMPH,
|
---|
472 | CV_AMD64_QUOTE = CV_REG_QUOTE,
|
---|
473 | CV_AMD64_PCDR3 = CV_REG_PCDR3, /* this includes PCDR4 to PCDR7 */
|
---|
474 | CV_AMD64_CR0 = CV_REG_CR0, /* this includes CR1 to CR4 */
|
---|
475 | CV_AMD64_DR0 = CV_REG_DR0, /* this includes DR1 to DR7 */
|
---|
476 | /* </pcode> */
|
---|
477 |
|
---|
478 | CV_AMD64_GDTR = CV_REG_GDTR,
|
---|
479 | CV_AMD64_GDTL = CV_REG_GDTL,
|
---|
480 | CV_AMD64_IDTR = CV_REG_IDTR,
|
---|
481 | CV_AMD64_IDTL = CV_REG_IDTL,
|
---|
482 | CV_AMD64_LDTR = CV_REG_LDTR,
|
---|
483 | CV_AMD64_TR = CV_REG_TR,
|
---|
484 |
|
---|
485 | CV_AMD64_PSEUDO1 = CV_REG_PSEUDO1, /* this includes Pseudo02 to Pseudo09 */
|
---|
486 | CV_AMD64_ST0 = CV_REG_ST0, /* this includes ST1 to ST7 */
|
---|
487 | CV_AMD64_CTRL = CV_REG_CTRL,
|
---|
488 | CV_AMD64_STAT = CV_REG_STAT,
|
---|
489 | CV_AMD64_TAG = CV_REG_TAG,
|
---|
490 | CV_AMD64_FPIP = CV_REG_FPIP,
|
---|
491 | CV_AMD64_FPCS = CV_REG_FPCS,
|
---|
492 | CV_AMD64_FPDO = CV_REG_FPDO,
|
---|
493 | CV_AMD64_FPDS = CV_REG_FPDS,
|
---|
494 | CV_AMD64_ISEM = CV_REG_ISEM,
|
---|
495 | CV_AMD64_FPEIP = CV_REG_FPEIP,
|
---|
496 | CV_AMD64_FPEDO = CV_REG_FPEDO,
|
---|
497 | CV_AMD64_MM0 = CV_REG_MM0, /* this includes MM1 to MM7 */
|
---|
498 | CV_AMD64_XMM0 = CV_REG_XMM0, /* this includes XMM1 to XMM7 */
|
---|
499 | CV_AMD64_XMM00 = CV_REG_XMM00,
|
---|
500 | CV_AMD64_XMM0L = CV_REG_XMM0L, /* this includes XMM1L to XMM7L */
|
---|
501 | CV_AMD64_XMM0H = CV_REG_XMM0H, /* this includes XMM1H to XMM7H */
|
---|
502 | CV_AMD64_MXCSR = CV_REG_MXCSR,
|
---|
503 | CV_AMD64_EDXEAX = CV_REG_EDXEAX,
|
---|
504 | CV_AMD64_EMM0L = CV_REG_EMM0L,
|
---|
505 | CV_AMD64_EMM0H = CV_REG_EMM0H,
|
---|
506 | CV_AMD64_MM00 = CV_REG_MM00,
|
---|
507 | CV_AMD64_MM01 = CV_REG_MM01,
|
---|
508 | CV_AMD64_MM10 = CV_REG_MM10,
|
---|
509 | CV_AMD64_MM11 = CV_REG_MM11,
|
---|
510 | CV_AMD64_MM20 = CV_REG_MM20,
|
---|
511 | CV_AMD64_MM21 = CV_REG_MM21,
|
---|
512 | CV_AMD64_MM30 = CV_REG_MM30,
|
---|
513 | CV_AMD64_MM31 = CV_REG_MM31,
|
---|
514 | CV_AMD64_MM40 = CV_REG_MM40,
|
---|
515 | CV_AMD64_MM41 = CV_REG_MM41,
|
---|
516 | CV_AMD64_MM50 = CV_REG_MM50,
|
---|
517 | CV_AMD64_MM51 = CV_REG_MM51,
|
---|
518 | CV_AMD64_MM60 = CV_REG_MM60,
|
---|
519 | CV_AMD64_MM61 = CV_REG_MM61,
|
---|
520 | CV_AMD64_MM70 = CV_REG_MM70,
|
---|
521 | CV_AMD64_MM71 = CV_REG_MM71,
|
---|
522 |
|
---|
523 | CV_AMD64_XMM8 = 252, /* this includes XMM9 to XMM15 */
|
---|
524 |
|
---|
525 | CV_AMD64_RAX = 328,
|
---|
526 | CV_AMD64_RBX = 329,
|
---|
527 | CV_AMD64_RCX = 330,
|
---|
528 | CV_AMD64_RDX = 331,
|
---|
529 | CV_AMD64_RSI = 332,
|
---|
530 | CV_AMD64_RDI = 333,
|
---|
531 | CV_AMD64_RBP = 334,
|
---|
532 | CV_AMD64_RSP = 335,
|
---|
533 |
|
---|
534 | CV_AMD64_R8 = 336,
|
---|
535 | CV_AMD64_R9 = 337,
|
---|
536 | CV_AMD64_R10 = 338,
|
---|
537 | CV_AMD64_R11 = 339,
|
---|
538 | CV_AMD64_R12 = 340,
|
---|
539 | CV_AMD64_R13 = 341,
|
---|
540 | CV_AMD64_R14 = 342,
|
---|
541 | CV_AMD64_R15 = 343,
|
---|
542 | };
|
---|
543 |
|
---|
544 | typedef enum
|
---|
545 | {
|
---|
546 | THUNK_ORDINAL_NOTYPE,
|
---|
547 | THUNK_ORDINAL_ADJUSTOR,
|
---|
548 | THUNK_ORDINAL_VCALL,
|
---|
549 | THUNK_ORDINAL_PCODE,
|
---|
550 | THUNK_ORDINAL_LOAD
|
---|
551 | } THUNK_ORDINAL;
|
---|
552 |
|
---|
553 | typedef enum CV_call_e
|
---|
554 | {
|
---|
555 | CV_CALL_NEAR_C,
|
---|
556 | CV_CALL_FAR_C,
|
---|
557 | CV_CALL_NEAR_PASCAL,
|
---|
558 | CV_CALL_FAR_PASCAL,
|
---|
559 | CV_CALL_NEAR_FAST,
|
---|
560 | CV_CALL_FAR_FAST,
|
---|
561 | CV_CALL_SKIPPED,
|
---|
562 | CV_CALL_NEAR_STD,
|
---|
563 | CV_CALL_FAR_STD,
|
---|
564 | CV_CALL_NEAR_SYS,
|
---|
565 | CV_CALL_FAR_SYS,
|
---|
566 | CV_CALL_THISCALL,
|
---|
567 | CV_CALL_MIPSCALL,
|
---|
568 | CV_CALL_GENERIC,
|
---|
569 | CV_CALL_ALPHACALL,
|
---|
570 | CV_CALL_PPCCALL,
|
---|
571 | CV_CALL_RESERVED,
|
---|
572 | } CV_call_e;
|
---|