annotate agent/src/share/classes/sun/jvm/hotspot/debugger/win32/coff/DebugVC50SymbolEnums.java @ 0:a61af66fc99e jdk7-b24

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