stab.def 9.1 KB

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