dw2-entry-value.S 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. /* Copyright 2011-2022 Free Software Foundation, Inc.
  2. This program is free software; you can redistribute it and/or modify
  3. it under the terms of the GNU General Public License as published by
  4. the Free Software Foundation; either version 3 of the License, or
  5. (at your option) any later version.
  6. This program is distributed in the hope that it will be useful,
  7. but WITHOUT ANY WARRANTY; without even the implied warranty of
  8. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  9. GNU General Public License for more details.
  10. You should have received a copy of the GNU General Public License
  11. along with this program. If not, see <http://www.gnu.org/licenses/>. */
  12. .section .debug_info
  13. debug_start:
  14. .4byte debug_end - 1f /* Length of Compilation Unit Info */
  15. 1:
  16. .2byte 0x3 /* DWARF version number */
  17. .4byte .Ldebug_abbrev0 /* Offset Into Abbrev. Section */
  18. .byte 0x4 /* Pointer Size (in bytes) */
  19. .uleb128 0x1 /* (DIE (0xb) DW_TAG_compile_unit) */
  20. .ascii "GNU C 4.4.3\0" /* DW_AT_producer */
  21. .byte 0x1 /* DW_AT_language */
  22. .ascii "1.c\0" /* DW_AT_name */
  23. .uleb128 0x4 /* (DIE (0x3c) DW_TAG_subprogram) */
  24. .ascii "f\0" /* DW_AT_name */
  25. .4byte f_start /* DW_AT_low_pc */
  26. .4byte f_end /* DW_AT_high_pc */
  27. .byte 0x1 /* DW_AT_prototyped */
  28. .uleb128 0x5 /* (DIE (0x42) DW_TAG_formal_parameter) */
  29. .ascii "param\0" /* DW_AT_name */
  30. .4byte type - debug_start /* DW_AT_type */
  31. .4byte loclist /* DW_AT_location */
  32. .byte 0x0 /* end of children of DIE 0x3c */
  33. type:
  34. .uleb128 3 /* Abbrev: DW_TAG_base_type */
  35. .ascii "int\0" /* DW_AT_name */
  36. .byte 4 /* DW_AT_byte_size */
  37. .byte 5 /* DW_AT_encoding */
  38. .byte 0x0 /* end of children of DIE 0xb */
  39. debug_end:
  40. .section .debug_loc
  41. loclist:
  42. .4byte f_start, f_end
  43. .2byte 2f-1f
  44. 1: .byte 0xf3 /* DW_OP_GNU_entry_value */
  45. .uleb128 2f-3f
  46. 3: .byte 0x50 /* DW_OP_reg0 */
  47. 2:
  48. .4byte 0, 0
  49. .section .debug_abbrev
  50. .Ldebug_abbrev0:
  51. .uleb128 0x1 /* (abbrev code) */
  52. .uleb128 0x11 /* (TAG: DW_TAG_compile_unit) */
  53. .byte 0x1 /* DW_children_yes */
  54. .uleb128 0x25 /* (DW_AT_producer) */
  55. .uleb128 0x8 /* (DW_FORM_string) */
  56. .uleb128 0x13 /* (DW_AT_language) */
  57. .uleb128 0xb /* (DW_FORM_data1) */
  58. .uleb128 0x3 /* (DW_AT_name) */
  59. .uleb128 0x8 /* (DW_FORM_string) */
  60. .byte 0x0
  61. .byte 0x0
  62. .uleb128 3 /* Abbrev code */
  63. .uleb128 0x24 /* DW_TAG_base_type */
  64. .byte 0 /* has_children */
  65. .uleb128 0x3 /* DW_AT_name */
  66. .uleb128 0x8 /* DW_FORM_string */
  67. .uleb128 0xb /* DW_AT_byte_size */
  68. .uleb128 0xb /* DW_FORM_data1 */
  69. .uleb128 0x3e /* DW_AT_encoding */
  70. .uleb128 0xb /* DW_FORM_data1 */
  71. .byte 0x0 /* Terminator */
  72. .byte 0x0 /* Terminator */
  73. .uleb128 0x4 /* (abbrev code) */
  74. .uleb128 0x2e /* (TAG: DW_TAG_subprogram) */
  75. .byte 0x1 /* DW_children_yes */
  76. .uleb128 0x3 /* (DW_AT_name) */
  77. .uleb128 0x8 /* (DW_FORM_string) */
  78. .uleb128 0x11 /* (DW_AT_low_pc) */
  79. .uleb128 0x1 /* (DW_FORM_addr) */
  80. .uleb128 0x12 /* (DW_AT_high_pc) */
  81. .uleb128 0x1 /* (DW_FORM_addr) */
  82. .uleb128 0x27 /* (DW_AT_prototyped) */
  83. .uleb128 0xc /* (DW_FORM_flag) */
  84. .byte 0x0
  85. .byte 0x0
  86. .uleb128 0x5 /* (abbrev code) */
  87. .uleb128 0x5 /* (TAG: DW_TAG_formal_parameter) */
  88. .byte 0x0 /* DW_children_no */
  89. .uleb128 0x3 /* DW_AT_name */
  90. .uleb128 0x8 /* DW_FORM_string */
  91. .uleb128 0x49 /* (DW_AT_type) */
  92. .uleb128 0x13 /* (DW_FORM_ref4) */
  93. .uleb128 0x02 /* (DW_AT_location) */
  94. .uleb128 0x06 /* (DW_FORM_data4) */
  95. .byte 0x0
  96. .byte 0x0
  97. .byte 0x0