From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) by sourceware.org (Postfix) with ESMTPS id A40F63856091 for ; Tue, 2 Aug 2022 04:45:58 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org A40F63856091 Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id C2DCC1FE7D for ; Tue, 2 Aug 2022 04:45:57 +0000 (UTC) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id B20701345B for ; Tue, 2 Aug 2022 04:45:57 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id Kp5vKgWs6GJcdQAAMHmgww (envelope-from ) for ; Tue, 02 Aug 2022 04:45:57 +0000 Date: Tue, 2 Aug 2022 06:45:56 +0200 From: Tom de Vries To: gdb-patches@sourceware.org Subject: [PATCH][gdb/testsuite] Fix .debug_aranges in gdb.dwarf2/fission-loclists.S Message-ID: <20220802044554.GA23254@delia.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-12.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Aug 2022 04:46:00 -0000 Hi, When running test-case gdb.dwarf2/fission-loclists.exp, I noticed: ... warning: Section .debug_aranges in fission-loclists has duplicate \ debug_info_offset 0x8f, ignoring .debug_aranges.^M ... Fix this by removing the duplicate .debug_aranges entry. Tested on x86_64-linux. Any comments? Thanks, - Tom [gdb/testsuite] Fix .debug_aranges in gdb.dwarf2/fission-loclists.S --- gdb/testsuite/gdb.dwarf2/fission-loclists.S | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/gdb/testsuite/gdb.dwarf2/fission-loclists.S b/gdb/testsuite/gdb.dwarf2/fission-loclists.S index 012b2d7ac7d..cf12ab3b04c 100644 --- a/gdb/testsuite/gdb.dwarf2/fission-loclists.S +++ b/gdb/testsuite/gdb.dwarf2/fission-loclists.S @@ -523,20 +523,6 @@ main: .quad .LFE1-.LFB1 # Length .quad 0 .quad 0 - .section .debug_aranges,"",@progbits - .4byte 0x3c # Length of Address Ranges Info - .value 0x2 # DWARF Version - .4byte .Lskeleton_debug_info0 # Offset of Compilation Unit Info - .byte 0x8 # Size of Address - .byte 0 # Size of Segment Descriptor - .value 0 # Pad to 16 byte boundary - .value 0 - .8byte .Ltext0 # Address - .8byte .Letext0-.Ltext0 # Length - .8byte .LFB1 # Address - .8byte .LFE1-.LFB1 # Length - .8byte 0 - .8byte 0 .section .debug_ranges,"",@progbits .Ldebug_ranges0: .8byte .Ltext0 - .Ltext0 # Offset 0