NASM-2.09.10
[nasm/sigaren-mirror.git] / output / stabs.h
blob1480d88f8cfe5c26d59730189b596a4d565d0441
1 /* ----------------------------------------------------------------------- *
3 * Copyright 1996-2010 The NASM Authors - All Rights Reserved
4 * See the file AUTHORS included with the NASM distribution for
5 * the specific copyright holders.
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following
9 * conditions are met:
11 * * Redistributions of source code must retain the above copyright
12 * notice, this list of conditions and the following disclaimer.
13 * * Redistributions in binary form must reproduce the above
14 * copyright notice, this list of conditions and the following
15 * disclaimer in the documentation and/or other materials provided
16 * with the distribution.
18 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
19 * CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
20 * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
21 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
22 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
23 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
24 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
25 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
26 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
28 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
29 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
30 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 * ----------------------------------------------------------------------- */
34 #ifndef STABS_H_
35 #define STABS_H_
37 #include <ctype.h>
38 #include <inttypes.h>
40 #include "compiler.h"
41 #include "nasmlib.h"
42 #include "nasm.h"
44 /* offsets */
45 enum stab_offsets {
46 STAB_strdxoff = 0,
47 STAB_typeoff = 4,
48 STAB_otheroff = 5,
49 STAB_descoff = 6,
50 STAB_valoff = 8,
51 STAB_stabsize = 12,
54 /* stab/non-stab types */
55 enum stab_types {
56 N_UNDF = 0x00,
57 N_ABS = 0x02,
58 N_ABS_EXT = 0x03,
59 N_TEXT = 0x04,
60 N_TEXT_EXT = 0x05,
61 N_DATA = 0x06,
62 N_DATA_EXT = 0x07,
63 N_BSS = 0x08,
64 N_BSS_EXT = 0x09,
65 N_FN_SEQ = 0x0c,
66 N_INDR = 0x0a,
67 N_COMM = 0x12,
68 N_SETA = 0x14,
69 N_SETA_EXT = 0x15,
70 N_SETT = 0x16,
71 N_SETT_EXT = 0x17,
72 N_SETD = 0x18,
73 N_SETD_EXT = 0x19,
74 N_SETB = 0x1a,
75 N_SETB_EXT = 0x1b,
76 N_SETV = 0x1c,
77 N_SETV_EXT = 0x1d,
78 N_WARNING = 0x1e,
79 N_FN = 0x1f,
80 N_GSYM = 0x20,
81 N_FNAME = 0x22,
82 N_FUN = 0x24,
83 N_STSYM = 0x26,
84 N_LCSYM = 0x28,
85 N_MAIN = 0x2a,
86 N_ROSYM = 0x2c,
87 N_BNSYM = 0x2e,
88 N_PC = 0x30,
89 N_NSYMS = 0x32,
90 N_NOMAP = 0x34,
91 N_OBJ = 0x38,
92 N_OPT = 0x3c,
93 N_RSYM = 0x40,
94 N_M2C = 0x42,
95 N_SLINE = 0x44,
96 N_DSLINE = 0x46,
97 N_BSLINE = 0x48,
98 N_BROWS = 0x48,
99 N_DEFD = 0x4a,
100 N_FLINE = 0x4c,
101 N_ENSYM = 0x4e,
102 N_EHDECL = 0x50,
103 N_MOD2 = 0x50,
104 N_CATCH = 0x54,
105 N_SSYM = 0x60,
106 N_ENDM = 0x62,
107 N_SO = 0x64, /* ID for main source file */
108 N_OSO = 0x66,
109 N_ALIAS = 0x6c,
110 N_LSYM = 0x80,
111 N_BINCL = 0x82,
112 N_SOL = 0x84, /* ID for sub-source file */
113 N_PSYM = 0xa0,
114 N_EINCL = 0xa2,
115 N_ENTRY = 0xa4,
116 N_LBRAC = 0xc0,
117 N_EXCL = 0xc2,
118 N_SCOPE = 0xc4,
119 N_PATCH = 0xd0,
120 N_RBRAC = 0xe0,
121 N_BCOMM = 0xe2,
122 N_ECOMM = 0xe4,
123 N_ECOML = 0xe8,
124 N_WITH = 0xea,
125 N_NBTEXT = 0xf0,
126 N_NBDATA = 0xf2,
127 N_NBBSS = 0xf4,
128 N_NBSTS = 0xf6,
129 N_NBLCS = 0xf8,
130 N_LENG = 0xfe,
133 enum stab_source_file {
134 N_SO_AS = 0x01,
135 N_SO_C = 0x02,
136 N_SO_ANSI_C = 0x03,
137 N_SO_CC = 0x04,
138 N_SO_FORTRAN = 0x05,
139 N_SO_PASCAL = 0x06,
140 N_SO_FORTRAN90 = 0x07,
141 N_SO_OBJC = 0x32,
142 N_SO_OBJCPLUS = 0x33,
145 #endif /* STABS_H_ */