| 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 |  | 
|---|
| 19 | /* Global variable.  Only the name is significant. | 
|---|
| 20 | To find the address, look in the corresponding external symbol.  */ | 
|---|
| 21 | __define_stab (N_GSYM, 0x20, "GSYM") | 
|---|
| 22 |  | 
|---|
| 23 | /* Function name for BSD Fortran.  Only the name is significant. | 
|---|
| 24 | To find the address, look in the corresponding external symbol.  */ | 
|---|
| 25 | __define_stab (N_FNAME, 0x22, "FNAME") | 
|---|
| 26 |  | 
|---|
| 27 | /* Function name or text-segment variable for C.  Value is its address. | 
|---|
| 28 | Desc is supposedly starting line number, but GCC doesn't set it | 
|---|
| 29 | and DBX seems not to miss it.  */ | 
|---|
| 30 | __define_stab (N_FUN, 0x24, "FUN") | 
|---|
| 31 |  | 
|---|
| 32 | /* Data-segment variable with internal linkage.  Value is its address.  */ | 
|---|
| 33 | __define_stab (N_STSYM, 0x26, "STSYM") | 
|---|
| 34 |  | 
|---|
| 35 | /* BSS-segment variable with internal linkage.  Value is its address.  */ | 
|---|
| 36 | __define_stab (N_LCSYM, 0x28, "LCSYM") | 
|---|
| 37 |  | 
|---|
| 38 | /* Name of main routine.  Only the name is significant. | 
|---|
| 39 | This is not used in C.  */ | 
|---|
| 40 | __define_stab (N_MAIN, 0x2a, "MAIN") | 
|---|
| 41 |  | 
|---|
| 42 | /* Register variable.  Value is number of register.  */ | 
|---|
| 43 | __define_stab (N_RSYM, 0x40, "RSYM") | 
|---|
| 44 |  | 
|---|
| 45 | /* Structure or union element.  Value is offset in the structure.  */ | 
|---|
| 46 | __define_stab (N_SSYM, 0x60, "SSYM") | 
|---|
| 47 |  | 
|---|
| 48 | /* Parameter variable.  Value is offset from argument pointer. | 
|---|
| 49 | (On most machines the argument pointer is the same as the frame pointer.  */ | 
|---|
| 50 | __define_stab (N_PSYM, 0xa0, "PSYM") | 
|---|
| 51 |  | 
|---|
| 52 | /* Automatic variable in the stack.  Value is offset from frame pointer. | 
|---|
| 53 | Also used for type descriptions.  */ | 
|---|
| 54 | __define_stab (N_LSYM, 0x80, "LSYM") | 
|---|
| 55 |  | 
|---|
| 56 | /* Alternate entry point.  Value is its address.  */ | 
|---|
| 57 | __define_stab (N_ENTRY, 0xa4, "ENTRY") | 
|---|
| 58 |  | 
|---|
| 59 | /* Name of main source file. | 
|---|
| 60 | Value is starting text address of the compilation.  */ | 
|---|
| 61 | __define_stab (N_SO, 0x64, "SO") | 
|---|
| 62 |  | 
|---|
| 63 | /* Name of sub-source file. | 
|---|
| 64 | Value is starting text address of the compilation.  */ | 
|---|
| 65 | __define_stab (N_SOL, 0x84, "SOL") | 
|---|
| 66 |  | 
|---|
| 67 | /* Line number in text segment.  Desc is the line number; | 
|---|
| 68 | value is corresponding address.  */ | 
|---|
| 69 | __define_stab (N_SLINE, 0x44, "SLINE") | 
|---|
| 70 | /* Similar, for data segment.  */ | 
|---|
| 71 | __define_stab (N_DSLINE, 0x46, "DSLINE") | 
|---|
| 72 | /* Similar, for bss segment.  */ | 
|---|
| 73 | __define_stab (N_BSLINE, 0x48, "BSLINE") | 
|---|
| 74 |  | 
|---|
| 75 | /* Beginning of an include file.  Only Sun uses this. | 
|---|
| 76 | In an object file, only the name is significant. | 
|---|
| 77 | The Sun linker puts data into some of the other fields.  */ | 
|---|
| 78 | __define_stab (N_BINCL, 0x82, "BINCL") | 
|---|
| 79 | /* End of an include file.  No name. | 
|---|
| 80 | These two act as brackets around the file's output. | 
|---|
| 81 | In an object file, there is no significant data in this entry. | 
|---|
| 82 | The Sun linker puts data into some of the fields.  */ | 
|---|
| 83 | __define_stab (N_EINCL, 0xa2, "EINCL") | 
|---|
| 84 | /* Place holder for deleted include file. | 
|---|
| 85 | This appears only in output from the Sun linker.  */ | 
|---|
| 86 | __define_stab (N_EXCL, 0xc2, "EXCL") | 
|---|
| 87 |  | 
|---|
| 88 | /* Beginning of lexical block. | 
|---|
| 89 | The desc is the nesting level in lexical blocks. | 
|---|
| 90 | The value is the address of the start of the text for the block. | 
|---|
| 91 | The variables declared inside the block *precede* the N_LBRAC symbol.  */ | 
|---|
| 92 | __define_stab (N_LBRAC, 0xc0, "LBRAC") | 
|---|
| 93 | /* End of a lexical block.  Desc matches the N_LBRAC's desc. | 
|---|
| 94 | The value is the address of the end of the text for the block.  */ | 
|---|
| 95 | __define_stab (N_RBRAC, 0xe0, "RBRAC") | 
|---|
| 96 |  | 
|---|
| 97 | /* Begin named common block.  Only the name is significant.  */ | 
|---|
| 98 | __define_stab (N_BCOMM, 0xe2, "BCOMM") | 
|---|
| 99 | /* Begin named common block.  Only the name is significant | 
|---|
| 100 | (and it should match the N_BCOMM).  */ | 
|---|
| 101 | __define_stab (N_ECOMM, 0xe4, "ECOMM") | 
|---|
| 102 | /* End common (local name): value is address. | 
|---|
| 103 | I'm not sure how this is used.  */ | 
|---|
| 104 | __define_stab (N_ECOML, 0xe8, "ECOML") | 
|---|
| 105 | /* Second symbol entry containing a length-value for the preceding entry. | 
|---|
| 106 | The value is the length.  */ | 
|---|
| 107 | __define_stab (N_LENG, 0xfe, "LENG") | 
|---|
| 108 |  | 
|---|
| 109 | /* Global symbol in Pascal. | 
|---|
| 110 | Supposedly the value is its line number; I'm skeptical.  */ | 
|---|
| 111 | __define_stab (N_PC, 0x30, "PC") | 
|---|
| 112 |  | 
|---|
| 113 | /* Modula-2 compilation unit.  Can someone say what info it contains?  */ | 
|---|
| 114 | __define_stab (N_M2C, 0x42, "M2C") | 
|---|
| 115 | /* Modula-2 scope information.  Can someone say what info it contains?  */ | 
|---|
| 116 | __define_stab (N_SCOPE, 0xc4, "SCOPE") | 
|---|