2004-09-21 Jason Molenda (jmolenda@apple.com)

* gdb.texinfo (Paths and Names of the Source Files): Document the
        meaning of values in the 'desc' field of a SO stab.

approval: http://sources.redhat.com/ml/gdb-patches/2004-09/msg00334.html
This commit is contained in:
Jason Molenda 2004-09-21 21:06:37 +00:00
parent 1c379e2004
commit 02a5771400
2 changed files with 32 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2004-09-21 Jason Molenda (jmolenda@apple.com)
* gdb.texinfo (Paths and Names of the Source Files): Document the
meaning of values in the 'desc' field of a SO stab.
2004-09-20 Daniel Jacobowitz <dan@debian.org> 2004-09-20 Daniel Jacobowitz <dan@debian.org>
* gdb.texinfo (Maintenance Commands): Document "maint set dwarf2 * gdb.texinfo (Maintenance Commands): Document "maint set dwarf2

View File

@ -422,9 +422,33 @@ file. This information is contained in a symbol of stab type
value of the symbol is the start address of the portion of the value of the symbol is the start address of the portion of the
text section corresponding to that file. text section corresponding to that file.
With the Sun Solaris2 compiler, the desc field contains a Some compilers use the desc field to indicate the language of the
source-language code. source file. Sun's compilers started this usage, and the first
@c Do the debuggers use it? What are the codes? -djm constants are derived from their documentation. Languages added
by gcc/gdb start at 0x32 to avoid conflict with languages Sun may
add in the future. A desc field with a value 0 indicates that no
language has been specified via this mechanism.
@table @asis
@item @code{N_SO_AS} (0x1)
Assembly language
@item @code{N_SO_C} (0x2)
K&R traditional C
@item @code{N_SO_ANSI_C} (0x3)
ANSI C
@item @code{N_SO_CC} (0x4)
C++
@item @code{N_SO_FORTRAN} (0x5)
Fortran
@item @code{N_SO_PASCAL} (0x6)
Pascal
@item @code{N_SO_FORTRAN90} (0x7)
Fortran90
@item @code{N_SO_OBJC} (0x32)
Objective-C
@item @code{N_SO_OBJCPLUS} (0x33)
Objective-C++
@end table
Some compilers (for example, GCC2 and SunOS4 @file{/bin/cc}) also Some compilers (for example, GCC2 and SunOS4 @file{/bin/cc}) also
include the directory in which the source was compiled, in a second include the directory in which the source was compiled, in a second