gsyms.h 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. /* Copyright (C) 1992-2015 Free Software Foundation, Inc.
  2. This file is part of GCC.
  3. GCC is free software; you can redistribute it and/or modify it under
  4. the terms of the GNU General Public License as published by the Free
  5. Software Foundation; either version 3, or (at your option) any later
  6. version.
  7. GCC is distributed in the hope that it will be useful, but WITHOUT ANY
  8. WARRANTY; without even the implied warranty of MERCHANTABILITY or
  9. FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
  10. for more details.
  11. You should have received a copy of the GNU General Public License
  12. along with GCC; see the file COPYING3. If not see
  13. <http://www.gnu.org/licenses/>. */
  14. /* For cross compilation, use the portable definitions from the COFF
  15. documentation. */
  16. #ifndef GCC_GSYMS_H
  17. #define GCC_GSYMS_H
  18. #define __GNU_SYMS__
  19. enum sdb_storage_class
  20. {
  21. C_EFCN = -1,
  22. C_NULL = 0,
  23. C_AUTO = 1,
  24. C_EXT = 2,
  25. C_STAT = 3,
  26. C_REG = 4,
  27. C_EXTDEF = 5,
  28. C_LABEL = 6,
  29. C_ULABEL = 7,
  30. C_MOS = 8,
  31. C_ARG = 9,
  32. C_STRTAG = 10,
  33. C_MOU = 11,
  34. C_UNTAG = 12,
  35. C_TPDEF = 13,
  36. C_USTATIC = 14,
  37. C_ENTAG = 15,
  38. C_MOE = 16,
  39. C_REGPARM = 17,
  40. C_FIELD = 18,
  41. C_BLOCK = 100,
  42. C_FCN = 101,
  43. C_EOS = 102,
  44. C_FILE = 103,
  45. C_LINE = 104,
  46. C_ALIAS = 105,
  47. C_HIDDEN = 106
  48. };
  49. enum sdb_type
  50. {
  51. T_NULL = 0,
  52. T_ARG = 1,
  53. T_VOID = 1,
  54. T_CHAR = 2,
  55. T_SHORT = 3,
  56. T_INT = 4,
  57. T_LONG = 5,
  58. T_FLOAT = 6,
  59. T_DOUBLE = 7,
  60. T_STRUCT = 8,
  61. T_UNION = 9,
  62. T_ENUM = 10,
  63. T_MOE = 11,
  64. T_UCHAR = 12,
  65. T_USHORT = 13,
  66. T_UINT = 14,
  67. T_ULONG = 15
  68. #ifdef EXTENDED_SDB_BASIC_TYPES
  69. , T_LNGDBL = 16
  70. #endif
  71. };
  72. enum sdb_type_class
  73. {
  74. DT_NON = 0,
  75. DT_PTR = 1,
  76. DT_FCN = 2,
  77. DT_ARY = 3
  78. };
  79. enum sdb_masks
  80. {
  81. #ifdef EXTENDED_SDB_BASIC_TYPES
  82. N_BTMASK = 0x1f,
  83. N_TMASK = 0x60,
  84. N_TMASK1 = 0x300,
  85. N_TMASK2 = 0x360,
  86. N_BTSHFT = 5,
  87. #else
  88. N_BTMASK = 017,
  89. N_TMASK = 060,
  90. N_TMASK1 = 0300,
  91. N_TMASK2 = 0360,
  92. N_BTSHFT = 4,
  93. #endif
  94. N_TSHIFT = 2
  95. };
  96. #endif /* GCC_GSYMS_H */