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