Karl Berry Olaf Bachmann and many others. The elements of the program structure that stabs encode include the name of the main function, the names of the source and include files, the line numbers, procedure names and types, and the beginnings and ends of blocks of code. The path and name of the source file 2.3 Names of Include Files Names of include files 2.4 Line Numbers 2.5 Procedures 2.6 Nested Procedures 2.7 Block Structure 2.8 Alternate Entry Points Entering procedures except at the beginning.
Most languages allow the main program to have any name.
Before any other stabs occur, there must be a stab specifying the source file. The value of the symbol is the start address of the portion of the text section corresponding to that file. With the Sun Solaris2 compiler, the desc field contains a source-language code. This symbol can be distinguished by the fact that it ends in a slash. The value is the address of the end of the text section for the file.