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