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