| OLD | NEW |
| 1 /* This testcase is part of GDB, the GNU debugger. | 1 /* This testcase is part of GDB, the GNU debugger. |
| 2 | 2 |
| 3 Copyright 2011-2012 Free Software Foundation, Inc. | 3 Copyright 2004, 2007-2012 Free Software Foundation, Inc. |
| 4 | 4 |
| 5 This program is free software; you can redistribute it and/or modify | 5 This program is free software; you can redistribute it and/or modify |
| 6 it under the terms of the GNU General Public License as published by | 6 it under the terms of the GNU General Public License as published by |
| 7 the Free Software Foundation; either version 3 of the License, or | 7 the Free Software Foundation; either version 3 of the License, or |
| 8 (at your option) any later version. | 8 (at your option) any later version. |
| 9 | 9 |
| 10 This program is distributed in the hope that it will be useful, | 10 This program is distributed in the hope that it will be useful, |
| 11 but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 GNU General Public License for more details. | 13 GNU General Public License for more details. |
| 14 | 14 |
| 15 You should have received a copy of the GNU General Public License | 15 You should have received a copy of the GNU General Public License |
| 16 along with this program. If not, see <http://www.gnu.org/licenses/>. */ | 16 along with this program. If not, see <http://www.gnu.org/licenses/>. */ |
| 17 | 17 |
| 18 .text |
| 19 .Lbegin_text1: |
| 20 |
| 21 .globl main |
| 22 .type main, %function |
| 23 main: |
| 24 .Lbegin_main: |
| 25 .int 0 |
| 26 .Lend_main: |
| 27 .size main, .-main |
| 28 |
| 29 .globl func2 |
| 30 .type func2, %function |
| 31 func2: |
| 32 .int 0 |
| 33 .size func2, .-func2 |
| 34 |
| 35 .Lend_text1: |
| 36 |
| 37 /* Debug information */ |
| 38 |
| 18 .section .debug_info | 39 .section .debug_info |
| 19 .Lcu1_begin: | 40 .Lcu1_begin: |
| 20 /* CU header */ | 41 /* CU header */ |
| 21 .4byte .Lcu1_end - .Lcu1_start /* Length of Compilation Unit */ | 42 .4byte .Lcu1_end - .Lcu1_start /* Length of Compilation Unit */ |
| 22 .Lcu1_start: | 43 .Lcu1_start: |
| 23 .2byte 2 /* DWARF Version */ | 44 .2byte 2 /* DWARF Version */ |
| 24 .4byte .Labbrev1_begin /* Offset into abbrev section */ | 45 .4byte .Labbrev1_begin /* Offset into abbrev section */ |
| 25 .byte 4 /* Pointer size */ | 46 .byte 4 /* Pointer size */ |
| 26 | 47 |
| 27 /* CU die */ | 48 /* CU die */ |
| 28 .uleb128 1 /* Abbrev: DW_TAG_compile_unit *
/ | 49 .uleb128 1 /* Abbrev: DW_TAG_compile_unit *
/ |
| 50 .4byte .Lend_text1 /* DW_AT_high_pc */ |
| 51 .4byte .Lbegin_text1 /* DW_AT_low_pc */ |
| 29 .ascii "file1.txt\0" /* DW_AT_name */ | 52 .ascii "file1.txt\0" /* DW_AT_name */ |
| 30 .ascii "GNU C 3.3.3\0" /* DW_AT_producer */ | 53 .ascii "GNU C 3.3.3\0" /* DW_AT_producer */ |
| 31 » .byte» 8» » » » /* DW_AT_language (DW_LANG_Fortr
an90) */ | 54 » .byte» 1» » » » /* DW_AT_language (C) */ |
| 32 » .4byte» » FUNC_lang» » /* DW_AT_low_pc */ | |
| 33 » .4byte» » main» » » /* DW_AT_high_pc */ | |
| 34 | 55 |
| 35 » .uleb128» 3» » » /* Abbrev: DW_TAG_subprogram */ | 56 » /* main */ |
| 57 » .uleb128» 2» » » /* Abbrev: DW_TAG_subprogram */ |
| 36 .byte 1 /* DW_AT_external */ | 58 .byte 1 /* DW_AT_external */ |
| 37 » .ascii» » "FUNC_lang\0"» » /* DW_AT_name */ | 59 » .ascii» » "main\0"» » /* DW_AT_name */ |
| 38 » .4byte» » FUNC_lang» » /* DW_AT_low_pc */ | 60 » .4byte» .Ldebug_ranges» » » /* DW_AT_ranges */ |
| 39 » .4byte» » main» » » /* DW_AT_high_pc */ | |
| 40 » .byte» » 1» » » /* DW_AT_prototyped */ | |
| 41 » .4byte» » .Ltype - .Lcu1_begin» /* DW_AT_type */ | |
| 42 | |
| 43 .Ltype: | |
| 44 » .uleb128 » 0x5» » » /* Abbrev: DW_TAG_base_type */ | |
| 45 » .byte» » 0x4» » » /* DW_AT_byte_size */ | |
| 46 » .byte» » 0x5» » » /* DW_AT_encoding */ | |
| 47 » .ascii »» "foo\0"»» » /* DW_AT_name */ | |
| 48 | 61 |
| 49 .byte 0 /* End of children of CU */ | 62 .byte 0 /* End of children of CU */ |
| 50 .Lcu1_end: | 63 .Lcu1_end: |
| 51 | 64 |
| 65 /* DW_AT_ranges. */ |
| 66 .section .debug_ranges |
| 67 .Ldebug_ranges: |
| 68 .4byte .Lbegin_main |
| 69 .4byte .Lend_main - 1 |
| 70 /* Make it slightly more interesting to set pending_addrmap_interesting.
*/ |
| 71 .4byte .Lend_main - 1 |
| 72 .4byte .Lend_main |
| 73 .4byte 0 |
| 74 .4byte 0 |
| 75 |
| 52 /* Abbrev table */ | 76 /* Abbrev table */ |
| 53 .section .debug_abbrev | 77 .section .debug_abbrev |
| 54 .Labbrev1_begin: | 78 .Labbrev1_begin: |
| 55 .uleb128 1 /* Abbrev code */ | 79 .uleb128 1 /* Abbrev code */ |
| 56 .uleb128 0x11 /* DW_TAG_compile_unit */ | 80 .uleb128 0x11 /* DW_TAG_compile_unit */ |
| 57 .byte 1 /* has_children */ | 81 .byte 1 /* has_children */ |
| 82 .uleb128 0x12 /* DW_AT_high_pc */ |
| 83 .uleb128 0x1 /* DW_FORM_addr */ |
| 84 .uleb128 0x11 /* DW_AT_low_pc */ |
| 85 .uleb128 0x1 /* DW_FORM_addr */ |
| 58 .uleb128 0x3 /* DW_AT_name */ | 86 .uleb128 0x3 /* DW_AT_name */ |
| 59 .uleb128 0x8 /* DW_FORM_string */ | 87 .uleb128 0x8 /* DW_FORM_string */ |
| 60 .uleb128 0x25 /* DW_AT_producer */ | 88 .uleb128 0x25 /* DW_AT_producer */ |
| 61 .uleb128 0x8 /* DW_FORM_string */ | 89 .uleb128 0x8 /* DW_FORM_string */ |
| 62 .uleb128 0x13 /* DW_AT_language */ | 90 .uleb128 0x13 /* DW_AT_language */ |
| 63 .uleb128 0xb /* DW_FORM_data1 */ | 91 .uleb128 0xb /* DW_FORM_data1 */ |
| 64 .uleb128 0x11 /* DW_AT_low_pc */ | |
| 65 .uleb128 0x1 /* DW_FORM_addr */ | |
| 66 .uleb128 0x12 /* DW_AT_high_pc */ | |
| 67 .uleb128 0x1 /* DW_FORM_addr */ | |
| 68 .byte 0x0 /* Terminator */ | 92 .byte 0x0 /* Terminator */ |
| 69 .byte 0x0 /* Terminator */ | 93 .byte 0x0 /* Terminator */ |
| 70 | 94 |
| 71 » .uleb128» 3» » » /* Abbrev code */ | 95 » .uleb128» 2» » » /* Abbrev code */ |
| 72 .uleb128 0x2e /* DW_TAG_subprogram */ | 96 .uleb128 0x2e /* DW_TAG_subprogram */ |
| 73 .byte 0 /* has_children */ | 97 .byte 0 /* has_children */ |
| 74 .uleb128 0x3f /* DW_AT_external */ | 98 .uleb128 0x3f /* DW_AT_external */ |
| 75 .uleb128 0xc /* DW_FORM_flag */ | 99 .uleb128 0xc /* DW_FORM_flag */ |
| 76 .uleb128 0x3 /* DW_AT_name */ | 100 .uleb128 0x3 /* DW_AT_name */ |
| 77 .uleb128 0x8 /* DW_FORM_string */ | 101 .uleb128 0x8 /* DW_FORM_string */ |
| 78 » .uleb128» 0x11» » » /* DW_AT_low_pc */ | 102 » .uleb128» 0x55» » » /* DW_AT_ranges */ |
| 79 » .uleb128» 0x1» » » /* DW_FORM_addr */ | 103 » .uleb128» 0x6» » » /* DW_FORM_data4 */ |
| 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 » .uleb128» 0x49» » » /* DW_AT_type */ | |
| 85 » .uleb128» 0x13» » » /* DW_FORM_ref4 */ | |
| 86 .byte 0x0 /* Terminator */ | 104 .byte 0x0 /* Terminator */ |
| 87 .byte 0x0 /* Terminator */ | 105 .byte 0x0 /* Terminator */ |
| 88 | 106 |
| 89 .uleb128 0x5 /* Abbrev code */ | |
| 90 .uleb128 0x24 /* DW_TAG_base_type */ | |
| 91 .byte 0x0 /* DW_children_no */ | |
| 92 .uleb128 0xb /* DW_AT_byte_size */ | |
| 93 .uleb128 0xb /* DW_FORM_data1 */ | |
| 94 .uleb128 0x3e /* DW_AT_encoding */ | |
| 95 .uleb128 0xb /* DW_FORM_data1 */ | |
| 96 .uleb128 0x3 /* DW_AT_name */ | |
| 97 .uleb128 0x8 /* DW_FORM_string */ | |
| 98 .byte 0x0 /* Terminator */ | |
| 99 .byte 0x0 /* Terminator */ | |
| 100 | |
| 101 .byte 0x0 /* Terminator */ | 107 .byte 0x0 /* Terminator */ |
| 102 .byte 0x0 /* Terminator */ | 108 .byte 0x0 /* Terminator */ |
| OLD | NEW |