0
|
1 /*
|
|
2 * Copyright 2001 Sun Microsystems, Inc. All Rights Reserved.
|
|
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
4 *
|
|
5 * This code is free software; you can redistribute it and/or modify it
|
|
6 * under the terms of the GNU General Public License version 2 only, as
|
|
7 * published by the Free Software Foundation.
|
|
8 *
|
|
9 * This code is distributed in the hope that it will be useful, but WITHOUT
|
|
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
12 * version 2 for more details (a copy is included in the LICENSE file that
|
|
13 * accompanied this code).
|
|
14 *
|
|
15 * You should have received a copy of the GNU General Public License version
|
|
16 * 2 along with this work; if not, write to the Free Software Foundation,
|
|
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
18 *
|
|
19 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
|
|
20 * CA 95054 USA or visit www.sun.com if you need additional information or
|
|
21 * have any questions.
|
|
22 *
|
|
23 */
|
|
24
|
|
25 package sun.jvm.hotspot.debugger.win32.coff;
|
|
26
|
|
27 /** Miscellaneous integer enumerations for symbol parsing */
|
|
28
|
|
29 public interface DebugVC50SymbolEnums {
|
|
30
|
|
31 /** Machine types (S_COMPILE) */
|
|
32 public static final byte MACHTYPE_INTEL_8080 = (byte) 0x00;
|
|
33 public static final byte MACHTYPE_INTEL_8086 = (byte) 0x01;
|
|
34 public static final byte MACHTYPE_INTEL_80286 = (byte) 0x02;
|
|
35 public static final byte MACHTYPE_INTEL_80386 = (byte) 0x03;
|
|
36 public static final byte MACHTYPE_INTEL_80486 = (byte) 0x04;
|
|
37 public static final byte MACHTYPE_INTEL_PENTIUM = (byte) 0x05;
|
|
38 public static final byte MACHTYPE_INTEL_PENTIUM_PRO = (byte) 0x06;
|
|
39 public static final byte MACHTYPE_MIPS_R4000 = (byte) 0x10;
|
|
40 public static final byte MACHTYPE_MIPS_RESERVED = (byte) 0x11;
|
|
41 public static final byte MACHTYPE_MIPS_RESERVED2 = (byte) 0x12;
|
|
42 public static final byte MACHTYPE_MC68000 = (byte) 0x20;
|
|
43 public static final byte MACHTYPE_MC68010 = (byte) 0x21;
|
|
44 public static final byte MACHTYPE_MC68020 = (byte) 0x22;
|
|
45 public static final byte MACHTYPE_MC68030 = (byte) 0x23;
|
|
46 public static final byte MACHTYPE_MC68040 = (byte) 0x24;
|
|
47 public static final byte MACHTYPE_ALPHA = (byte) 0x30;
|
|
48 public static final byte MACHTYPE_PPC601 = (byte) 0x40;
|
|
49 public static final byte MACHTYPE_PPC603 = (byte) 0x41;
|
|
50 public static final byte MACHTYPE_PPC604 = (byte) 0x42;
|
|
51 public static final byte MACHTYPE_PPC620 = (byte) 0x43;
|
|
52
|
|
53 /** Compile flags (S_COMPILE). All have masks and shifts because the
|
|
54 data is bit-packed into three bytes in the file. (FIXME: test
|
|
55 these masks and shifts to make sure they are correct.) */
|
|
56 public static final int COMPFLAG_LANGUAGE_MASK = 0x00FF0000;
|
|
57 public static final int COMPFLAG_LANGUAGE_SHIFT = 16;
|
|
58 public static final int COMPFLAG_LANGUAGE_C = 0;
|
|
59 public static final int COMPFLAG_LANGUAGE_CPP = 1; // C++
|
|
60 public static final int COMPFLAG_LANGUAGE_FORTRAN = 2;
|
|
61 public static final int COMPFLAG_LANGUAGE_MASM = 3;
|
|
62 public static final int COMPFLAG_LANGUAGE_PASCAL = 4;
|
|
63 public static final int COMPFLAG_LANGUAGE_BASIC = 5;
|
|
64 public static final int COMPFLAG_LANGUAGE_COBOL = 6;
|
|
65
|
|
66 public static final int COMPFLAG_PCODE_PRESENT_MASK = 0x00008000;
|
|
67
|
|
68 // Float precision enumeration
|
|
69 public static final int COMPFLAG_FLOAT_PRECISION_MASK = 0x00006000;
|
|
70 public static final int COMPFLAG_FLOAT_PRECISION_SHIFT = 13;
|
|
71 public static final int COMPFLAG_FLOAT_PRECISION_ANSI_C = 1;
|
|
72
|
|
73 // Floating package enumeration
|
|
74 public static final int COMPFLAG_FLOAT_PACKAGE_MASK = 0x00001800;
|
|
75 public static final int COMPFLAG_FLOAT_PACKAGE_SHIFT = 11;
|
|
76 public static final int COMPFLAG_FLOAT_PACKAGE_HARDWARE = 0;
|
|
77 public static final int COMPFLAG_FLOAT_PACKAGE_EMULATOR = 1;
|
|
78 public static final int COMPFLAG_FLOAT_PACKAGE_ALTMATH = 2;
|
|
79
|
|
80 // Ambient code/data memory model flags
|
|
81 public static final int COMPFLAG_AMBIENT_DATA_MASK = 0x00000700;
|
|
82 public static final int COMPFLAG_AMBIENT_DATA_SHIFT = 12;
|
|
83 public static final int COMPFLAG_AMBIENT_CODE_MASK = 0x000000E0;
|
|
84 public static final int COMPFLAG_AMBIENT_CODE_SHIFT = 8;
|
|
85 public static final int COMPFLAG_AMBIENT_MODEL_NEAR = 0;
|
|
86 public static final int COMPFLAG_AMBIENT_MODEL_FAR = 1;
|
|
87 public static final int COMPFLAG_AMBIENT_MODEL_HUGE = 2;
|
|
88
|
|
89 // Indicates whether program is compiled for 32-bit addresses
|
|
90 public static final int COMPFLAG_MODE32_MASK = 0x00000010;
|
|
91
|
|
92 /** Function return flags (S_RETURN) */
|
|
93 // FIXME: verify these are correct
|
|
94 public static final short FUNCRET_VARARGS_LEFT_TO_RIGHT_MASK = (short) 0x0001;
|
|
95 public static final short FUNCRET_RETURNEE_STACK_CLEANUP_MASK = (short) 0x0002;
|
|
96
|
|
97 // Return styles
|
|
98 public static final byte FUNCRET_VOID = (byte) 0x00;
|
|
99 public static final byte FUNCRET_IN_REGISTERS = (byte) 0x01;
|
|
100 public static final byte FUNCRET_INDIRECT_CALLER_NEAR = (byte) 0x02;
|
|
101 public static final byte FUNCRET_INDIRECT_CALLER_FAR = (byte) 0x03;
|
|
102 public static final byte FUNCRET_INDIRECT_RETURNEE_NEAR = (byte) 0x04;
|
|
103 public static final byte FUNCRET_INDIRECT_RETURNEE_FAR = (byte) 0x05;
|
|
104
|
|
105 /** Procedure flags */
|
|
106 // FIXME: verify these are correct
|
|
107 public static final byte PROCFLAGS_FRAME_POINTER_OMITTED = (byte) 0x01;
|
|
108 public static final byte PROCFLAGS_INTERRUPT_ROUTINE = (byte) 0x02;
|
|
109 public static final byte PROCFLAGS_FAR_RETURN = (byte) 0x04;
|
|
110 public static final byte PROCFLAGS_NEVER_RETURN = (byte) 0x08;
|
|
111
|
|
112 /** Thunk types (S_THUNK32) */
|
|
113 public static final byte THUNK_NO_TYPE = (byte) 0;
|
|
114 public static final byte THUNK_ADJUSTOR = (byte) 1;
|
|
115 public static final byte THUNK_VCALL = (byte) 2;
|
|
116 public static final byte THUNK_PCODE = (byte) 3;
|
|
117
|
|
118 /** Execution models (S_CEXMODEL32) */
|
|
119 public static final short EXMODEL_NOT_CODE = (short) 0x00;
|
|
120 public static final short EXMODEL_JUMP_TABLE = (short) 0x01;
|
|
121 public static final short EXMODEL_PADDING = (short) 0x02;
|
|
122 public static final short EXMODEL_NATIVE = (short) 0x20;
|
|
123 public static final short EXMODEL_MICROFOCUS_COBOL = (short) 0x21;
|
|
124 public static final short EXMODEL_PADDING_FOR_ALIGNMENT = (short) 0x22;
|
|
125 public static final short EXMODEL_CODE = (short) 0x23;
|
|
126 public static final short EXMODEL_PCODE = (short) 0x40;
|
|
127 }
|