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