| OLD | NEW |
| 1 /* Copyright 2011-2012 Free Software Foundation, Inc. | 1 /* Copyright 2011-2012 Free Software Foundation, Inc. |
| 2 | 2 |
| 3 This program is free software; you can redistribute it and/or modify | 3 This program is free software; you can redistribute it and/or modify |
| 4 it under the terms of the GNU General Public License as published by | 4 it under the terms of the GNU General Public License as published by |
| 5 the Free Software Foundation; either version 3 of the License, or | 5 the Free Software Foundation; either version 3 of the License, or |
| 6 (at your option) any later version. | 6 (at your option) any later version. |
| 7 | 7 |
| 8 This program is distributed in the hope that it will be useful, | 8 This program is distributed in the hope that it will be useful, |
| 9 but WITHOUT ANY WARRANTY; without even the implied warranty of | 9 but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 11 GNU General Public License for more details. | 11 GNU General Public License for more details. |
| 12 | 12 |
| 13 You should have received a copy of the GNU General Public License | 13 You should have received a copy of the GNU General Public License |
| 14 along with this program. If not, see <http://www.gnu.org/licenses/>. */ | 14 along with this program. If not, see <http://www.gnu.org/licenses/>. */ |
| 15 | 15 |
| 16 .section .debug_info | 16 .section .debug_info |
| 17 debug_start: | 17 debug_start: |
| 18 » .long» debug_end - 1f» /* Length of Compilation Unit Info */ | 18 » .4byte» debug_end - 1f» /* Length of Compilation Unit Info */ |
| 19 1: | 19 1: |
| 20 .2byte 0x4 /* DWARF version number */ | 20 .2byte 0x4 /* DWARF version number */ |
| 21 » .long» .Ldebug_abbrev0»/* Offset Into Abbrev. Section */ | 21 » .4byte» .Ldebug_abbrev0»/* Offset Into Abbrev. Section */ |
| 22 .byte 0x4 /* Pointer Size (in bytes) */ | 22 .byte 0x4 /* Pointer Size (in bytes) */ |
| 23 .uleb128 0x3 /* (DIE (0xb) DW_TAG_compile_unit) */ | 23 .uleb128 0x3 /* (DIE (0xb) DW_TAG_compile_unit) */ |
| 24 .ascii "GNU C 4.4.3\0" /* DW_AT_producer */ | 24 .ascii "GNU C 4.4.3\0" /* DW_AT_producer */ |
| 25 .byte 0x0c /* DW_AT_language = DW_LANG_C99 */ | 25 .byte 0x0c /* DW_AT_language = DW_LANG_C99 */ |
| 26 .ascii "1.c\0" /* DW_AT_name */ | 26 .ascii "1.c\0" /* DW_AT_name */ |
| 27 debug_end: | 27 debug_end: |
| 28 | 28 |
| 29 .section .debug_types | 29 .section .debug_types |
| 30 types_start: | 30 types_start: |
| 31 .macro unit sig1 sig2 name | 31 .macro unit sig1 sig2 name |
| 32 » .long» 2f - 1f»/* Length of Compilation Unit Info */ | 32 » .4byte» 2f - 1f»/* Length of Compilation Unit Info */ |
| 33 1: | 33 1: |
| 34 .2byte 0x4 /* DWARF version number */ | 34 .2byte 0x4 /* DWARF version number */ |
| 35 » .long» .Ldebug_abbrev0»/* Offset Into Abbrev. Section */ | 35 » .4byte» .Ldebug_abbrev0»/* Offset Into Abbrev. Section */ |
| 36 .byte 0x4 /* Pointer Size (in bytes) */ | 36 .byte 0x4 /* Pointer Size (in bytes) */ |
| 37 /* signature */ | 37 /* signature */ |
| 38 .4byte \sig1 | 38 .4byte \sig1 |
| 39 .4byte \sig2 | 39 .4byte \sig2 |
| 40 » .long» 3f-types_start» /* offset into type DIE */ | 40 » .4byte» 3f-types_start» /* offset into type DIE */ |
| 41 .uleb128 0x1 /* DW_TAG_type_unit) */ | 41 .uleb128 0x1 /* DW_TAG_type_unit) */ |
| 42 .byte 0x0c /* DW_AT_language = DW_LANG_C99 */ | 42 .byte 0x0c /* DW_AT_language = DW_LANG_C99 */ |
| 43 3: | 43 3: |
| 44 .uleb128 0x2 /* DW_TAG_structure_type */ | 44 .uleb128 0x2 /* DW_TAG_structure_type */ |
| 45 .ascii "\name" /* DW_AT_name ... */ | 45 .ascii "\name" /* DW_AT_name ... */ |
| 46 .byte 0 /* ... DW_AT_name */ | 46 .byte 0 /* ... DW_AT_name */ |
| 47 .4byte 0 /* DW_AT_byte_size */ | 47 .4byte 0 /* DW_AT_byte_size */ |
| 48 .byte 0x0 /* end of children of CU */ | 48 .byte 0x0 /* end of children of CU */ |
| 49 2: | 49 2: |
| 50 .endm | 50 .endm |
| 51 | 51 |
| 52 unit 0x01234567, 0x01234567, foo | 52 unit 0x01234567, 0x01234567, foo |
| 53 /* One duplicate. */ | 53 /* One duplicate. */ |
| 54 unit 0x01234567, 0x01234567, foo | 54 unit 0x01234567, 0x01234567, foo |
| 55 /* One different, but still unused. */ | 55 /* One different, but still unused. */ |
| 56 unit 0x89abcdef, 0x89abcdef, bar | 56 unit 0x89abcdef, 0x89abcdef, bar |
| 57 | 57 |
| 58 .section .debug_abbrev | 58 .section .debug_abbrev |
| 59 .Ldebug_abbrev0: | 59 .Ldebug_abbrev0: |
| 60 .uleb128 0x1 /* (abbrev code) */ | 60 .uleb128 0x1 /* (abbrev code) */ |
| 61 » .uleb128 0x11» /* (TAG: DW_TAG_type_unit) */ | 61 » .uleb128 0x41» /* (TAG: DW_TAG_type_unit) */ |
| 62 .byte 0x1 /* DW_children_yes */ | 62 .byte 0x1 /* DW_children_yes */ |
| 63 .uleb128 0x13 /* (DW_AT_language) */ | 63 .uleb128 0x13 /* (DW_AT_language) */ |
| 64 .uleb128 0xb /* (DW_FORM_data1) */ | 64 .uleb128 0xb /* (DW_FORM_data1) */ |
| 65 .byte 0x0 | 65 .byte 0x0 |
| 66 .byte 0x0 | 66 .byte 0x0 |
| 67 .uleb128 0x2 /* (abbrev code) */ | 67 .uleb128 0x2 /* (abbrev code) */ |
| 68 .uleb128 0x13 /* (TAG: DW_TAG_structure_type) */ | 68 .uleb128 0x13 /* (TAG: DW_TAG_structure_type) */ |
| 69 .byte 0x0 /* DW_children_no */ | 69 .byte 0x0 /* DW_children_no */ |
| 70 .uleb128 0x3 /* (DW_AT_name) */ | 70 .uleb128 0x3 /* (DW_AT_name) */ |
| 71 .uleb128 0x8 /* (DW_FORM_string) */ | 71 .uleb128 0x8 /* (DW_FORM_string) */ |
| 72 .uleb128 0x0b /* (DW_AT_byte_size) */ | 72 .uleb128 0x0b /* (DW_AT_byte_size) */ |
| 73 .uleb128 0x6 /* (DW_FORM_data4) */ | 73 .uleb128 0x6 /* (DW_FORM_data4) */ |
| 74 .byte 0x0 | 74 .byte 0x0 |
| 75 .byte 0x0 | 75 .byte 0x0 |
| 76 .uleb128 0x3 /* (abbrev code) */ | 76 .uleb128 0x3 /* (abbrev code) */ |
| 77 .uleb128 0x11 /* (TAG: DW_TAG_compile_unit) */ | 77 .uleb128 0x11 /* (TAG: DW_TAG_compile_unit) */ |
| 78 .byte 0x0 /* DW_children_no */ | 78 .byte 0x0 /* DW_children_no */ |
| 79 .uleb128 0x25 /* (DW_AT_producer) */ | 79 .uleb128 0x25 /* (DW_AT_producer) */ |
| 80 .uleb128 0x8 /* (DW_FORM_string) */ | 80 .uleb128 0x8 /* (DW_FORM_string) */ |
| 81 .uleb128 0x13 /* (DW_AT_language) */ | 81 .uleb128 0x13 /* (DW_AT_language) */ |
| 82 .uleb128 0xb /* (DW_FORM_data1) */ | 82 .uleb128 0xb /* (DW_FORM_data1) */ |
| 83 .uleb128 0x3 /* (DW_AT_name) */ | 83 .uleb128 0x3 /* (DW_AT_name) */ |
| 84 .uleb128 0x8 /* (DW_FORM_string) */ | 84 .uleb128 0x8 /* (DW_FORM_string) */ |
| 85 .byte 0x0 | 85 .byte 0x0 |
| 86 .byte 0x0 | 86 .byte 0x0 |
| 87 .byte 0x0 | 87 .byte 0x0 |
| OLD | NEW |