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