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