home *** CD-ROM | disk | FTP | other *** search
/ GEMini Atari / GEMini_Atari_CD-ROM_Walnut_Creek_December_1993.iso / files / gnu / util_src / stab.def < prev    next >
Encoding:
Text File  |  1993-07-29  |  9.1 KB  |  202 lines

  1. /* Table of DBX symbol codes for the GNU system.
  2.    Copyright (C) 1988 Free Software Foundation, Inc.
  3.  
  4.                NO WARRANTY
  5.  
  6.   BECAUSE THIS PROGRAM IS LICENSED FREE OF CHARGE, WE PROVIDE ABSOLUTELY
  7. NO WARRANTY, TO THE EXTENT PERMITTED BY APPLICABLE STATE LAW.  EXCEPT
  8. WHEN OTHERWISE STATED IN WRITING, FREE SOFTWARE FOUNDATION, INC,
  9. RICHARD M. STALLMAN AND/OR OTHER PARTIES PROVIDE THIS PROGRAM "AS IS"
  10. WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
  11. BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
  12. FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS TO THE QUALITY
  13. AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE PROGRAM PROVE
  14. DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR
  15. CORRECTION.
  16.  
  17.  IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW WILL RICHARD M.
  18. STALLMAN, THE FREE SOFTWARE FOUNDATION, INC., AND/OR ANY OTHER PARTY
  19. WHO MAY MODIFY AND REDISTRIBUTE THIS PROGRAM AS PERMITTED BELOW, BE
  20. LIABLE TO YOU FOR DAMAGES, INCLUDING ANY LOST PROFITS, LOST MONIES, OR
  21. OTHER SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
  22. USE OR INABILITY TO USE (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR
  23. DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY THIRD PARTIES OR
  24. A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS) THIS
  25. PROGRAM, EVEN IF YOU HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH
  26. DAMAGES, OR FOR ANY CLAIM BY ANY OTHER PARTY.
  27.  
  28.         GENERAL PUBLIC LICENSE TO COPY
  29.  
  30.   1. You may copy and distribute verbatim copies of this source file
  31. as you receive it, in any medium, provided that you conspicuously and
  32. appropriately publish on each copy a valid copyright notice "Copyright
  33.  (C) 1988 Free Software Foundation, Inc."; and include following the
  34. copyright notice a verbatim copy of the above disclaimer of warranty
  35. and of this License.  You may charge a distribution fee for the
  36. physical act of transferring a copy.
  37.  
  38.   2. You may modify your copy or copies of this source file or
  39. any portion of it, and copy and distribute such modifications under
  40. the terms of Paragraph 1 above, provided that you also do the following:
  41.  
  42.     a) cause the modified files to carry prominent notices stating
  43.     that you changed the files and the date of any change; and
  44.  
  45.     b) cause the whole of any work that you distribute or publish,
  46.     that in whole or in part contains or is a derivative of this
  47.     program or any part thereof, to be licensed at no charge to all
  48.     third parties on terms identical to those contained in this
  49.     License Agreement (except that you may choose to grant more extensive
  50.     warranty protection to some or all third parties, at your option).
  51.  
  52.     c) You may charge a distribution fee for the physical act of
  53.     transferring a copy, and you may at your option offer warranty
  54.     protection in exchange for a fee.
  55.  
  56. Mere aggregation of another unrelated program with this program (or its
  57. derivative) on a volume of a storage or distribution medium does not bring
  58. the other program under the scope of these terms.
  59.  
  60.   3. You may copy and distribute this program or any portion of it in
  61. compiled, executable or object code form under the terms of Paragraphs
  62. 1 and 2 above provided that you do the following:
  63.  
  64.     a) accompany it with the complete corresponding machine-readable
  65.     source code, which must be distributed under the terms of
  66.     Paragraphs 1 and 2 above; or,
  67.  
  68.     b) accompany it with a written offer, valid for at least three
  69.     years, to give any third party free (except for a nominal
  70.     shipping charge) a complete machine-readable copy of the
  71.     corresponding source code, to be distributed under the terms of
  72.     Paragraphs 1 and 2 above; or,
  73.  
  74.     c) accompany it with the information you received as to where the
  75.     corresponding source code may be obtained.  (This alternative is
  76.     allowed only for noncommercial distribution and only if you
  77.     received the program in object code or executable form alone.)
  78.  
  79. For an executable file, complete source code means all the source code for
  80. all modules it contains; but, as a special exception, it need not include
  81. source code for modules which are standard libraries that accompany the
  82. operating system on which the executable file runs.
  83.  
  84.   4. You may not copy, sublicense, distribute or transfer this program
  85. except as expressly provided under this License Agreement.  Any attempt
  86. otherwise to copy, sublicense, distribute or transfer this program is void and
  87. your rights to use the program under this License agreement shall be
  88. automatically terminated.  However, parties who have received computer
  89. software programs from you with this License Agreement will not have
  90. their licenses terminated so long as such parties remain in full compliance.
  91.  
  92.   5. If you wish to incorporate parts of this program into other free
  93. programs whose distribution conditions are different, write to the Free
  94. Software Foundation at 675 Mass Ave, Cambridge, MA 02139.  We have not yet
  95. worked out a simple rule that can be stated here, but we will often permit
  96. this.  We will be guided by the two goals of preserving the free status of
  97. all derivatives our free software and of promoting the sharing and reuse of
  98. software.
  99.  
  100.  
  101. In other words, you are welcome to use, share and improve this program.
  102. You are forbidden to forbid anyone else to use, share and improve
  103. what you give them.   Help stamp out software-hoarding!  */
  104.  
  105. /* Global variable.  Only the name is significant.
  106.    To find the address, look in the corresponding external symbol.  */
  107. __define_stab (N_GSYM, 0x20, "GSYM")
  108.  
  109. /* Function name for BSD Fortran.  Only the name is significant.
  110.    To find the address, look in the corresponding external symbol.  */
  111. __define_stab (N_FNAME, 0x22, "FNAME")
  112.  
  113. /* Function name or text-segment variable for C.  Value is its address.
  114.    Desc is supposedly starting line number, but GCC doesn't set it
  115.    and DBX seems not to miss it.  */
  116. __define_stab (N_FUN, 0x24, "FUN")
  117.  
  118. /* Data-segment variable with internal linkage.  Value is its address.  */
  119. __define_stab (N_STSYM, 0x26, "STSYM")
  120.  
  121. /* BSS-segment variable with internal linkage.  Value is its address.  */
  122. __define_stab (N_LCSYM, 0x28, "LCSYM")
  123.  
  124. /* Name of main routine.  Only the name is significant.
  125.    This is not used in C.  */
  126. __define_stab (N_MAIN, 0x2a, "MAIN")
  127.  
  128. /* Register variable.  Value is number of register.  */
  129. __define_stab (N_RSYM, 0x40, "RSYM")
  130.  
  131. /* Structure or union element.  Value is offset in the structure.  */
  132. __define_stab (N_SSYM, 0x60, "SSYM")
  133.  
  134. /* Parameter variable.  Value is offset from argument pointer.
  135.    (On most machines the argument pointer is the same as the frame pointer.  */
  136. __define_stab (N_PSYM, 0xa0, "PSYM")
  137.  
  138. /* Automatic variable in the stack.  Value is offset from frame pointer.  */
  139. __define_stab (N_LSYM, 0x80, "LSYM")
  140.  
  141. /* Alternate entry point.  Value is its address.  */
  142. __define_stab (N_ENTRY, 0xa4, "ENTRY")
  143.  
  144. /* Name of main source file.
  145.    Value is starting text address of the compilation.  */
  146. __define_stab (N_SO, 0x64, "SO")
  147.  
  148. /* Name of sub-source file.
  149.    Value is starting text address of the compilation.  */
  150. __define_stab (N_SOL, 0x84, "SOL")
  151.  
  152. /* Line number in text segment.  Desc is the line number;
  153.    value is corresponding address.  */
  154. __define_stab (N_SLINE, 0x44, "SLINE")
  155. /* Similar, for data segment.  */
  156. __define_stab (N_DSLINE, 0x46, "DSLINE")
  157. /* Similar, for bss segment.  */
  158. __define_stab (N_BSLINE, 0x48, "BSLINE")
  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. /* End of an include file.  No name.
  165.    These two act as brackets around the file's output.
  166.    In an object file, there is no significant data in this entry.
  167.    The Sun linker puts data into some of the fields.  */
  168. __define_stab (N_EINCL, 0xa2, "EINCL")
  169. /* Place holder for deleted include file.
  170.    This appears only in output from the Sun linker.  */
  171. __define_stab (N_EXCL, 0xc2, "EXCL")
  172.  
  173. /* Beginning of lexical block.
  174.    The desc is the nesting level in lexical blocks.
  175.    The value is the address of the start of the text for the block.
  176.    The variables declared inside the block *precede* the N_LBRAC symbol.  */
  177. __define_stab (N_LBRAC, 0xc0, "LBRAC")
  178. /* End of a lexical block.  Desc matches the N_LBRAC's desc.
  179.    The value is the address of the end of the text for the block.  */
  180. __define_stab (N_RBRAC, 0xe0, "RBRAC")
  181.  
  182. /* Begin named common block.  Only the name is significant.  */
  183. __define_stab (N_BCOMM, 0xe2, "BCOMM")
  184. /* Begin named common block.  Only the name is significant
  185.    (and it should match the N_BCOMM).  */
  186. __define_stab (N_ECOMM, 0xe4, "ECOMM")
  187. /* End common (local name): value is address.
  188.    I'm not sure how this is used.  */
  189. __define_stab (N_ECOML, 0xe8, "ECOML")
  190. /* Second symbol entry containing a length-value for the preceding entry.
  191.    The value is the length.  */
  192. __define_stab (N_LENG, 0xfe, "LENG")
  193.  
  194. /* Global symbol in Pascal.
  195.    Supposedly the value is its line number; I'm skeptical.  */
  196. __define_stab (N_PC, 0x30, "PC")
  197.  
  198. /* Modula-2 compilation unit.  Can someone say what info it contains?  */
  199. __define_stab (N_M2C, 0x42, "M2C")
  200. /* Modula-2 scope information.  Can someone say what info it contains?  */
  201. __define_stab (N_SCOPE, 0xc4, "SCOPE")
  202.