source: trunk/src/emx/include/a_out_stab.h@ 959

Last change on this file since 959 was 236, checked in by zap, 23 years ago

See ChangeLog.

  • Property cvs2svn:cvs-rev set to 1.1
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 11.0 KB
Line 
1/* Table of DBX symbol codes for the GNU system.
2 Copyright 1988, 1991, 1992, 1993, 1994, 1996, 1998
3 Free Software Foundation, Inc.
4
5This program is free software; you can redistribute it and/or modify
6it under the terms of the GNU General Public License as published by
7the Free Software Foundation; either version 2 of the License, or
8(at your option) any later version.
9
10This program is distributed in the hope that it will be useful,
11but WITHOUT ANY WARRANTY; without even the implied warranty of
12MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13GNU General Public License for more details.
14
15You should have received a copy of the GNU General Public License
16along with this program; if not, write to the Free Software
17Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
18
19
20
21#ifndef __GNU_STAB__
22
23/* Indicate the GNU stab.h is in use. */
24
25#define __GNU_STAB__
26
27#define __define_stab(NAME, CODE, STRING) NAME=CODE,
28#define __define_stab_duplicate(NAME, CODE, STRING) NAME=CODE,
29
30enum __stab_debug_code
31{
32
33/* New stab from Solaris 2. This uses an n_type of 0, which in a.out files
34 overlaps the N_UNDF used for ordinary symbols. In ELF files, the
35 debug information is in a different file section, so there is no conflict.
36 This symbol's n_value gives the size of the string section associated
37 with this file. The symbol's n_strx (relative to the just-updated
38 string section start address) gives the name of the source file,
39 e.g. "foo.c", without any path information. The symbol's n_desc gives
40 the count of upcoming symbols associated with this file (not including
41 this one). */
42/* __define_stab (N_UNDF, 0x00, "UNDF") */
43
44/* Global variable. Only the name is significant.
45 To find the address, look in the corresponding external symbol. */
46__define_stab (N_GSYM, 0x20, "GSYM")
47
48/* Function name for BSD Fortran. Only the name is significant.
49 To find the address, look in the corresponding external symbol. */
50__define_stab (N_FNAME, 0x22, "FNAME")
51
52/* Function name or text-segment variable for C. Value is its address.
53 Desc is supposedly starting line number, but GCC doesn't set it
54 and DBX seems not to miss it. */
55__define_stab (N_FUN, 0x24, "FUN")
56
57/* Data-segment variable with internal linkage. Value is its address.
58 "Static Sym". */
59__define_stab (N_STSYM, 0x26, "STSYM")
60
61/* BSS-segment variable with internal linkage. Value is its address. */
62__define_stab (N_LCSYM, 0x28, "LCSYM")
63
64/* Name of main routine. Only the name is significant. */
65__define_stab (N_MAIN, 0x2a, "MAIN")
66
67/* Solaris2: Read-only data symbols. */
68__define_stab (N_ROSYM, 0x2c, "ROSYM")
69
70/* Global symbol in Pascal.
71 Supposedly the value is its line number; I'm skeptical. */
72__define_stab (N_PC, 0x30, "PC")
73
74/* Number of symbols: 0, files,,funcs,lines according to Ultrix V4.0. */
75__define_stab (N_NSYMS, 0x32, "NSYMS")
76
77/* "No DST map for sym: name, ,0,type,ignored" according to Ultrix V4.0. */
78__define_stab (N_NOMAP, 0x34, "NOMAP")
79
80/* New stab from Solaris 2. Like N_SO, but for the object file. Two in
81 a row provide the build directory and the relative path of the .o from it.
82 Solaris2 uses this to avoid putting the stabs info into the linked
83 executable; this stab goes into the ".stab.index" section, and the debugger
84 reads the real stabs directly from the .o files instead. */
85__define_stab (N_OBJ, 0x38, "OBJ")
86
87/* New stab from Solaris 2. Options for the debugger, related to the
88 source language for this module. E.g. whether to use ANSI
89 integral promotions or traditional integral promotions. */
90__define_stab (N_OPT, 0x3c, "OPT")
91
92/* Register variable. Value is number of register. */
93__define_stab (N_RSYM, 0x40, "RSYM")
94
95/* Modula-2 compilation unit. Can someone say what info it contains? */
96__define_stab (N_M2C, 0x42, "M2C")
97
98/* Line number in text segment. Desc is the line number;
99 value is corresponding address. On Solaris2, the line number is
100 relative to the start of the current function. */
101__define_stab (N_SLINE, 0x44, "SLINE")
102
103/* Similar, for data segment. */
104__define_stab (N_DSLINE, 0x46, "DSLINE")
105
106/* Similar, for bss segment. */
107__define_stab (N_BSLINE, 0x48, "BSLINE")
108
109/* Sun's source-code browser stabs. ?? Don't know what the fields are.
110 Supposedly the field is "path to associated .cb file". THIS VALUE
111 OVERLAPS WITH N_BSLINE! */
112__define_stab_duplicate (N_BROWS, 0x48, "BROWS")
113
114/* GNU Modula-2 definition module dependency. Value is the modification time
115 of the definition file. Other is non-zero if it is imported with the
116 GNU M2 keyword %INITIALIZE. Perhaps N_M2C can be used if there
117 are enough empty fields? */
118__define_stab(N_DEFD, 0x4a, "DEFD")
119
120/* New in Solaris2. Function start/body/end line numbers. */
121__define_stab(N_FLINE, 0x4C, "FLINE")
122
123/* THE FOLLOWING TWO STAB VALUES CONFLICT. Happily, one is for Modula-2
124 and one is for C++. Still,... */
125/* GNU C++ exception variable. Name is variable name. */
126__define_stab (N_EHDECL, 0x50, "EHDECL")
127/* Modula2 info "for imc": name,,0,0,0 according to Ultrix V4.0. */
128__define_stab_duplicate (N_MOD2, 0x50, "MOD2")
129
130/* GNU C++ `catch' clause. Value is its address. Desc is nonzero if
131 this entry is immediately followed by a CAUGHT stab saying what exception
132 was caught. Multiple CAUGHT stabs means that multiple exceptions
133 can be caught here. If Desc is 0, it means all exceptions are caught
134 here. */
135__define_stab (N_CATCH, 0x54, "CATCH")
136
137/* Structure or union element. Value is offset in the structure. */
138__define_stab (N_SSYM, 0x60, "SSYM")
139
140/* Solaris2: Last stab emitted for module. */
141__define_stab (N_ENDM, 0x62, "ENDM")
142
143/* Name of main source file.
144 Value is starting text address of the compilation.
145 If multiple N_SO's appear, the first to contain a trailing / is the
146 compilation directory. The first to not contain a trailing / is the
147 source file name, relative to the compilation directory. Others (perhaps
148 resulting from cfront) are ignored.
149 On Solaris2, value is undefined, but desc is a source-language code. */
150
151__define_stab (N_SO, 0x64, "SO")
152
153/* SunPro F77: Name of alias. */
154__define_stab (N_ALIAS, 0x6c, "ALIAS")
155
156/* Automatic variable in the stack. Value is offset from frame pointer.
157 Also used for type descriptions. */
158__define_stab (N_LSYM, 0x80, "LSYM")
159
160/* Beginning of an include file. Only Sun uses this.
161 In an object file, only the name is significant.
162 The Sun linker puts data into some of the other fields. */
163__define_stab (N_BINCL, 0x82, "BINCL")
164
165/* Name of sub-source file (#include file).
166 Value is starting text address of the compilation. */
167__define_stab (N_SOL, 0x84, "SOL")
168
169/* Parameter variable. Value is offset from argument pointer.
170 (On most machines the argument pointer is the same as the frame pointer. */
171__define_stab (N_PSYM, 0xa0, "PSYM")
172
173/* End of an include file. No name.
174 This and N_BINCL act as brackets around the file's output.
175 In an object file, there is no significant data in this entry.
176 The Sun linker puts data into some of the fields. */
177__define_stab (N_EINCL, 0xa2, "EINCL")
178
179/* Alternate entry point. Value is its address. */
180__define_stab (N_ENTRY, 0xa4, "ENTRY")
181
182/* Beginning of lexical block.
183 The desc is the nesting level in lexical blocks.
184 The value is the address of the start of the text for the block.
185 The variables declared inside the block *precede* the N_LBRAC symbol.
186 On Solaris2, the value is relative to the start of the current function. */
187__define_stab (N_LBRAC, 0xc0, "LBRAC")
188
189/* Place holder for deleted include file. Replaces a N_BINCL and everything
190 up to the corresponding N_EINCL. The Sun linker generates these when
191 it finds multiple identical copies of the symbols from an include file.
192 This appears only in output from the Sun linker. */
193__define_stab (N_EXCL, 0xc2, "EXCL")
194
195/* Modula-2 scope information. Can someone say what info it contains? */
196__define_stab (N_SCOPE, 0xc4, "SCOPE")
197
198/* End of a lexical block. Desc matches the N_LBRAC's desc.
199 The value is the address of the end of the text for the block.
200 On Solaris2, the value is relative to the start of the current function. */
201__define_stab (N_RBRAC, 0xe0, "RBRAC")
202
203/* Begin named common block. Only the name is significant. */
204__define_stab (N_BCOMM, 0xe2, "BCOMM")
205
206/* End named common block. Only the name is significant
207 (and it should match the N_BCOMM). */
208__define_stab (N_ECOMM, 0xe4, "ECOMM")
209