* aout64.h: Add casts to avoid warnings from SVR4 cc.
[deliverable/binutils-gdb.git] / include / aout / stab.def
CommitLineData
1291085e
JG
1/* Table of DBX symbol codes for the GNU system.
2 Copyright (C) 1988, 1991 Free Software Foundation, Inc.
3
4This program is free software; you can redistribute it and/or modify
5it under the terms of the GNU General Public License as published by
6the Free Software Foundation; either version 2 of the License, or
7(at your option) any later version.
8
9This program is distributed in the hope that it will be useful,
10but WITHOUT ANY WARRANTY; without even the implied warranty of
11MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12GNU General Public License for more details.
13
14You should have received a copy of the GNU General Public License
15along with this program; if not, write to the Free Software
16Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
17\f
18/* Global variable. Only the name is significant.
19 To find the address, look in the corresponding external symbol. */
20__define_stab (N_GSYM, 0x20, "GSYM")
21
22/* Function name for BSD Fortran. Only the name is significant.
23 To find the address, look in the corresponding external symbol. */
24__define_stab (N_FNAME, 0x22, "FNAME")
25
26/* Function name or text-segment variable for C. Value is its address.
27 Desc is supposedly starting line number, but GCC doesn't set it
28 and DBX seems not to miss it. */
29__define_stab (N_FUN, 0x24, "FUN")
30
31/* Data-segment variable with internal linkage. Value is its address.
32 "Static Sym". */
33__define_stab (N_STSYM, 0x26, "STSYM")
34
35/* BSS-segment variable with internal linkage. Value is its address. */
36__define_stab (N_LCSYM, 0x28, "LCSYM")
37
38/* Name of main routine. Only the name is significant.
39 This is not used in C. */
40__define_stab (N_MAIN, 0x2a, "MAIN")
41
42/* Global symbol in Pascal.
43 Supposedly the value is its line number; I'm skeptical. */
44__define_stab (N_PC, 0x30, "PC")
45
46/* Number of symbols: 0, files,,funcs,lines according to Ultrix V4.0. */
47__define_stab (N_NSYMS, 0x32, "NSYMS")
48
49/* "No DST map for sym: name, ,0,type,ignored" according to Ultrix V4.0. */
50__define_stab (N_NOMAP, 0x34, "NOMAP")
51
52/* New stab from Solaris. I don't know what it means, but it
53 don't seem to contain useful information. */
54__define_stab (N_OBJ, 0x38, "OBJ")
55
56/* New stab from Solaris. I don't know what it means, but it
57 don't seem to contain useful information. Possibly related to the
58 optimization flags used in this module. */
59__define_stab (N_OPT, 0x3c, "OPT")
60
61/* Register variable. Value is number of register. */
62__define_stab (N_RSYM, 0x40, "RSYM")
63
64/* Modula-2 compilation unit. Can someone say what info it contains? */
65__define_stab (N_M2C, 0x42, "M2C")
66
67/* Line number in text segment. Desc is the line number;
68 value is corresponding address. */
69__define_stab (N_SLINE, 0x44, "SLINE")
70
71/* Similar, for data segment. */
72__define_stab (N_DSLINE, 0x46, "DSLINE")
73
74/* Similar, for bss segment. */
75__define_stab (N_BSLINE, 0x48, "BSLINE")
76
77/* Sun's source-code browser stabs. ?? Don't know what the fields are.
78 Supposedly the field is "path to associated .cb file". THIS VALUE
79 OVERLAPS WITH N_BSLINE! */
80__define_stab (N_BROWS, 0x48, "BROWS")
81
82/* GNU Modula-2 definition module dependency. Value is the modification time
83 of the definition file. Other is non-zero if it is imported with the
84 GNU M2 keyword %INITIALIZE. Perhaps N_M2C can be used if there
85 are enough empty fields? */
86__define_stab(N_DEFD, 0x4a, "DEFD")
87
88/* THE FOLLOWING TWO STAB VALUES CONFLICT. Happily, one is for Modula-2
89 and one is for C++. Still,... */
90/* GNU C++ exception variable. Name is variable name. */
91__define_stab (N_EHDECL, 0x50, "EHDECL")
92/* Modula2 info "for imc": name,,0,0,0 according to Ultrix V4.0. */
93__define_stab (N_MOD2, 0x50, "MOD2")
94
95/* GNU C++ `catch' clause. Value is its address. Desc is nonzero if
96 this entry is immediately followed by a CAUGHT stab saying what exception
97 was caught. Multiple CAUGHT stabs means that multiple exceptions
98 can be caught here. If Desc is 0, it means all exceptions are caught
99 here. */
100__define_stab (N_CATCH, 0x54, "CATCH")
101
102/* Structure or union element. Value is offset in the structure. */
103__define_stab (N_SSYM, 0x60, "SSYM")
104
105/* Name of main source file.
106 Value is starting text address of the compilation. */
107__define_stab (N_SO, 0x64, "SO")
108
109/* Automatic variable in the stack. Value is offset from frame pointer.
110 Also used for type descriptions. */
111__define_stab (N_LSYM, 0x80, "LSYM")
112
113/* Beginning of an include file. Only Sun uses this.
114 In an object file, only the name is significant.
115 The Sun linker puts data into some of the other fields. */
116__define_stab (N_BINCL, 0x82, "BINCL")
117
118/* Name of sub-source file (#include file).
119 Value is starting text address of the compilation. */
120__define_stab (N_SOL, 0x84, "SOL")
121
122/* Parameter variable. Value is offset from argument pointer.
123 (On most machines the argument pointer is the same as the frame pointer. */
124__define_stab (N_PSYM, 0xa0, "PSYM")
125
126/* End of an include file. No name.
127 This and N_BINCL act as brackets around the file's output.
128 In an object file, there is no significant data in this entry.
129 The Sun linker puts data into some of the fields. */
130__define_stab (N_EINCL, 0xa2, "EINCL")
131
132/* Alternate entry point. Value is its address. */
133__define_stab (N_ENTRY, 0xa4, "ENTRY")
134
135/* Beginning of lexical block.
136 The desc is the nesting level in lexical blocks.
137 The value is the address of the start of the text for the block.
138 The variables declared inside the block *precede* the N_LBRAC symbol. */
139__define_stab (N_LBRAC, 0xc0, "LBRAC")
140
141/* Place holder for deleted include file. Replaces a N_BINCL and everything
142 up to the corresponding N_EINCL. The Sun linker generates these when
143 it finds multiple identical copies of the symbols from an include file.
144 This appears only in output from the Sun linker. */
145__define_stab (N_EXCL, 0xc2, "EXCL")
146
147/* Modula-2 scope information. Can someone say what info it contains? */
148__define_stab (N_SCOPE, 0xc4, "SCOPE")
149
150/* End of a lexical block. Desc matches the N_LBRAC's desc.
151 The value is the address of the end of the text for the block. */
152__define_stab (N_RBRAC, 0xe0, "RBRAC")
153
154/* Begin named common block. Only the name is significant. */
155__define_stab (N_BCOMM, 0xe2, "BCOMM")
156
157/* End named common block. Only the name is significant
158 (and it should match the N_BCOMM). */
159__define_stab (N_ECOMM, 0xe4, "ECOMM")
160
161/* End common (local name): value is address.
162 I'm not sure how this is used. */
163__define_stab (N_ECOML, 0xe8, "ECOML")
164
165/* These STAB's are used on Gould systems for Non-Base register symbols
166 or something like that. FIXME. I have assigned the values at random
167 since I don't have a Gould here. Fixups from Gould folk welcome... */
168__define_stab (N_NBTEXT, 0xF0, "NBTEXT")
169__define_stab (N_NBDATA, 0xF2, "NBDATA")
170__define_stab (N_NBBSS, 0xF4, "NBBSS")
171__define_stab (N_NBSTS, 0xF6, "NBSTS")
172__define_stab (N_NBLCS, 0xF8, "NBLCS")
173
174/* Second symbol entry containing a length-value for the preceding entry.
175 The value is the length. */
176__define_stab (N_LENG, 0xfe, "LENG")
177\f
178/* The above information, in matrix format.
179
180 STAB MATRIX
181 _________________________________________________
182 | 00 - 1F are not dbx stab symbols |
183 | In most cases, the low bit is the EXTernal bit|
184
185 | 00 UNDEF | 02 ABS | 04 TEXT | 06 DATA |
186 | 01 |EXT | 03 |EXT | 05 |EXT | 07 |EXT |
187
188 | 08 BSS | 0A INDR | 0C FN_SEQ | 0E |
189 | 09 |EXT | 0B | 0D | 0F |
190
191 | 10 | 12 COMM | 14 SETA | 16 SETT |
192 | 11 | 13 | 15 | 17 |
193
194 | 18 SETD | 1A SETB | 1C SETV | 1E WARNING|
195 | 19 | 1B | 1D | 1F FN |
196
197 |_______________________________________________|
198 | Debug entries with bit 01 set are unused. |
199 | 20 GSYM | 22 FNAME | 24 FUN | 26 STSYM |
200 | 28 LCSYM | 2A MAIN | 2C | 2E |
201 | 30 PC | 32 NSYMS | 34 NOMAP | 36 |
202 | 38 OBJ | 3A | 3C OPT | 3E |
203 | 40 RSYM | 42 M2C | 44 SLINE | 46 DSLINE |
204 | 48 BSLINE*| 4A DEFD | 4C | 4E |
205 | 50 EHDECL*| 52 | 54 CATCH | 56 |
206 | 58 | 5A | 5C | 5E |
207 | 60 SSYM | 62 | 64 SO | 66 |
208 | 68 | 6A | 6C | 6E |
209 | 70 | 72 | 74 | 76 |
210 | 78 | 7A | 7C | 7E |
211 | 80 LSYM | 82 BINCL | 84 SOL | 86 |
212 | 88 | 8A | 8C | 8E |
213 | 90 | 92 | 94 | 96 |
214 | 98 | 9A | 9C | 9E |
215 | A0 PSYM | A2 EINCL | A4 ENTRY | A6 |
216 | A8 | AA | AC | AE |
217 | B0 | B2 | B4 | B6 |
218 | B8 | BA | BC | BE |
219 | C0 LBRAC | C2 EXCL | C4 SCOPE | C6 |
220 | C8 | CA | CC | CE |
221 | D0 | D2 | D4 | D6 |
222 | D8 | DA | DC | DE |
223 | E0 RBRAC | E2 BCOMM | E4 ECOMM | E6 |
224 | E8 ECOML | EA | EC | EE |
225 | F0 | F2 | F4 | F6 |
226 | F8 | FA | FC | FE LENG |
227 +-----------------------------------------------+
228 * 50 EHDECL is also MOD2.
229 * 48 BSLINE is also BROWS.
230 */
This page took 0.085985 seconds and 4 git commands to generate.