]> Git Repo - binutils.git/blame - include/stab.def
Merge with latest FSF versions.
[binutils.git] / include / stab.def
CommitLineData
61a153e5 1/* Table of DBX symbol codes for the GNU system.
55fbee91 2 Copyright (C) 1988, 1991 Free Software Foundation, Inc.
61a153e5 3
55fbee91
JG
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.
61a153e5 8
55fbee91
JG
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.
1c6c6598 13
55fbee91
JG
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. */
61a153e5
RP
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
55fbee91
JG
31/* Data-segment variable with internal linkage. Value is its address.
32 "Static Sym". */
61a153e5
RP
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
55fbee91
JG
42/* Global symbol in Pascal.
43 Supposedly the value is its line number; I'm skeptical. */
44__define_stab (N_PC, 0x30, "PC")
45
bad3df67
JG
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
61a153e5
RP
52/* Register variable. Value is number of register. */
53__define_stab (N_RSYM, 0x40, "RSYM")
54
55fbee91
JG
55/* Modula-2 compilation unit. Can someone say what info it contains? */
56__define_stab (N_M2C, 0x42, "M2C")
57
58/* Line number in text segment. Desc is the line number;
59 value is corresponding address. */
60__define_stab (N_SLINE, 0x44, "SLINE")
61
62/* Similar, for data segment. */
63__define_stab (N_DSLINE, 0x46, "DSLINE")
64
65/* Similar, for bss segment. */
66__define_stab (N_BSLINE, 0x48, "BSLINE")
67
68/* Sun's source-code browser stabs. ?? Don't know what the fields are.
69 Supposedly the field is "path to associated .cb file". THIS VALUE
70 OVERLAPS WITH N_BSLINE! */
71__define_stab (N_BROWS, 0x48, "BROWS")
72
73/* THE FOLLOWING TWO STAB VALUES CONFLICT. Happily, one is for Modula-2
74 and one is for C++. Still,... */
75/* GNU C++ exception variable. Name is variable name. */
76__define_stab (N_EHDECL, 0x50, "EHDECL")
77/* Modula2 info "for imc": name,,0,0,0 according to Ultrix V4.0. */
78__define_stab (N_MOD2, 0x50, "MOD2")
79
80/* GNU C++ `catch' clause. Value is its address. Desc is nonzero if
81 this entry is immediately followed by a CAUGHT stab saying what exception
82 was caught. Multiple CAUGHT stabs means that multiple exceptions
83 can be caught here. If Desc is 0, it means all exceptions are caught
84 here. */
85__define_stab (N_CATCH, 0x54, "CATCH")
86
61a153e5
RP
87/* Structure or union element. Value is offset in the structure. */
88__define_stab (N_SSYM, 0x60, "SSYM")
89
55fbee91
JG
90/* Name of main source file.
91 Value is starting text address of the compilation. */
92__define_stab (N_SO, 0x64, "SO")
61a153e5
RP
93
94/* Automatic variable in the stack. Value is offset from frame pointer.
95 Also used for type descriptions. */
96__define_stab (N_LSYM, 0x80, "LSYM")
97
55fbee91
JG
98/* Beginning of an include file. Only Sun uses this.
99 In an object file, only the name is significant.
100 The Sun linker puts data into some of the other fields. */
101__define_stab (N_BINCL, 0x82, "BINCL")
61a153e5 102
bad3df67 103/* Name of sub-source file (#include file).
61a153e5
RP
104 Value is starting text address of the compilation. */
105__define_stab (N_SOL, 0x84, "SOL")
106
55fbee91
JG
107/* Parameter variable. Value is offset from argument pointer.
108 (On most machines the argument pointer is the same as the frame pointer. */
109__define_stab (N_PSYM, 0xa0, "PSYM")
61a153e5 110
61a153e5 111/* End of an include file. No name.
55fbee91 112 This and N_BINCL act as brackets around the file's output.
61a153e5
RP
113 In an object file, there is no significant data in this entry.
114 The Sun linker puts data into some of the fields. */
115__define_stab (N_EINCL, 0xa2, "EINCL")
55fbee91
JG
116
117/* Alternate entry point. Value is its address. */
118__define_stab (N_ENTRY, 0xa4, "ENTRY")
61a153e5
RP
119
120/* Beginning of lexical block.
121 The desc is the nesting level in lexical blocks.
122 The value is the address of the start of the text for the block.
123 The variables declared inside the block *precede* the N_LBRAC symbol. */
124__define_stab (N_LBRAC, 0xc0, "LBRAC")
55fbee91
JG
125
126/* Place holder for deleted include file. Replaces a N_BINCL and everything
127 up to the corresponding N_EINCL. The Sun linker generates these when
128 it finds multiple identical copies of the symbols from an include file.
129 This appears only in output from the Sun linker. */
130__define_stab (N_EXCL, 0xc2, "EXCL")
131
132/* Modula-2 scope information. Can someone say what info it contains? */
133__define_stab (N_SCOPE, 0xc4, "SCOPE")
134
61a153e5
RP
135/* End of a lexical block. Desc matches the N_LBRAC's desc.
136 The value is the address of the end of the text for the block. */
137__define_stab (N_RBRAC, 0xe0, "RBRAC")
138
139/* Begin named common block. Only the name is significant. */
140__define_stab (N_BCOMM, 0xe2, "BCOMM")
55fbee91
JG
141
142/* End named common block. Only the name is significant
61a153e5
RP
143 (and it should match the N_BCOMM). */
144__define_stab (N_ECOMM, 0xe4, "ECOMM")
55fbee91 145
61a153e5
RP
146/* End common (local name): value is address.
147 I'm not sure how this is used. */
148__define_stab (N_ECOML, 0xe8, "ECOML")
61a153e5
RP
149
150/* These STAB's are used on Gould systems for Non-Base register symbols
151 or something like that. FIXME. I have assigned the values at random
152 since I don't have a Gould here. Fixups from Gould folk welcome... */
153__define_stab (N_NBTEXT, 0xF0, "NBTEXT")
154__define_stab (N_NBDATA, 0xF2, "NBDATA")
155__define_stab (N_NBBSS, 0xF4, "NBBSS")
156__define_stab (N_NBSTS, 0xF6, "NBSTS")
157__define_stab (N_NBLCS, 0xF8, "NBLCS")
55fbee91
JG
158
159/* Second symbol entry containing a length-value for the preceding entry.
160 The value is the length. */
161__define_stab (N_LENG, 0xfe, "LENG")
61a153e5
RP
162\f
163/* The above information, in matrix format.
164
165 STAB MATRIX
166 _________________________________________________
167 | 00 - 1F are not dbx stab symbols |
797d1b89
JG
168 | Entries with bit 01 set are external symbols. |
169 | 00 UNDEF | 02 ABS | 04 TEXT | 06 DATA |
55fbee91 170 | 08 BSS | 0A INDR* | 0C | 0E FN |
797d1b89 171 | 10 | 12 | 14 SETA | 16 SETT |
55fbee91 172 | 18 SETD | 1A SETB | 1C SETV | 1E WARNING|
61a153e5 173 |_______________________________________________|
797d1b89 174 | Debug entries with bit 01 set are unused. |
61a153e5
RP
175 | 20 GSYM | 22 FNAME | 24 FUN | 26 STSYM |
176 | 28 LCSYM | 2A MAIN | 2C | 2E |
bad3df67 177 | 30 PC | 32 NSYMS | 34 NOMAP | 36 |
61a153e5 178 | 38 | 3A | 3C | 3E |
55fbee91
JG
179 | 40 RSYM | 42 M2C | 44 SLINE | 46 DSLINE |
180 | 48 BSLINE*| 4A | 4C | 4E |
bad3df67 181 | 50 EHDECL*| 52 | 54 CATCH | 56 |
61a153e5 182 | 58 | 5A | 5C | 5E |
55fbee91
JG
183 | 60 SSYM | 62 | 64 SO | 66 |
184 | 68 | 6A | 6C | 6E |
61a153e5
RP
185 | 70 | 72 | 74 | 76 |
186 | 78 | 7A | 7C | 7E |
187 | 80 LSYM | 82 BINCL | 84 SOL | 86 |
188 | 88 | 8A | 8C | 8E |
189 | 90 | 92 | 94 | 96 |
190 | 98 | 9A | 9C | 9E |
191 | A0 PSYM | A2 EINCL | A4 ENTRY | A6 |
192 | A8 | AA | AC | AE |
193 | B0 | B2 | B4 | B6 |
194 | B8 | BA | BC | BE |
195 | C0 LBRAC | C2 EXCL | C4 SCOPE | C6 |
196 | C8 | CA | CC | CE |
197 | D0 | D2 | D4 | D6 |
198 | D8 | DA | DC | DE |
199 | E0 RBRAC | E2 BCOMM | E4 ECOMM | E6 |
200 | E8 ECOML | EA | EC | EE |
201 | F0 | F2 | F4 | F6 |
202 | F8 | FA | FC | FE LENG |
203 +-----------------------------------------------+
bad3df67 204 * 50 EHDECL is also MOD2.
55fbee91 205 * 48 BSLINE is also BROWS.
797d1b89 206 * 0A INDR is also COMM (supposedly only used internally to unix ld?)
55fbee91 207 */
This page took 0.07193 seconds and 4 git commands to generate.