From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id 4PyGOFtd8mIHtCMAWB0awg (envelope-from ) for ; Tue, 09 Aug 2022 09:12:59 -0400 Received: by simark.ca (Postfix, from userid 112) id DB14A1E5EA; Tue, 9 Aug 2022 09:12:59 -0400 (EDT) Authentication-Results: simark.ca; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=EFomK0Q0; dkim-atps=neutral X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-3.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 904571E222 for ; Tue, 9 Aug 2022 09:12:59 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id DE75B385AE41 for ; Tue, 9 Aug 2022 13:12:58 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DE75B385AE41 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1660050778; bh=viBJHGd9Bxl3rydNSpmVZIHoxj5+Wt7BRT/DnSwS1GY=; h=Date:To:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=EFomK0Q083Y4pB1XnM/xfkupDniWq7eKS2+UQYVaYfiEtdSYAMHscj9REAh975bGA DfkSmgsKCZpTmQTsMw5++U2Exjg4C9Apc+/J/kmZ0R8yMRtRrKgxZcKWqn2kVmma/k V5Kw9aygEwNKXkvaVkL5J68iZYtczOh/g8YJQIjk= Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by sourceware.org (Postfix) with ESMTPS id 50A24385AE43 for ; Tue, 9 Aug 2022 13:12:38 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 50A24385AE43 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-out1.suse.de (Postfix) with ESMTPS id 383A837681 for ; Tue, 9 Aug 2022 13:12:35 +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 1768213AA1 for ; Tue, 9 Aug 2022 13:12:35 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id u0qDBENd8mJQKAAAMHmgww (envelope-from ) for ; Tue, 09 Aug 2022 13:12:35 +0000 Date: Tue, 9 Aug 2022 15:12:33 +0200 To: gdb-patches@sourceware.org Subject: [committed][gdb/testsuite] Fix gdb.dwarf2/debug-names.exp Message-ID: <20220809131231.GA1851@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-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: , From: Tom de Vries via Gdb-patches Reply-To: Tom de Vries Errors-To: gdb-patches-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb-patches" Hi, When running test-case gdb.dwarf2/debug-names.exp on openSUSE Tumbleweed, I run into: ... (gdb) maint info symtabs^M ... ERROR: internal buffer is full. UNRESOLVED: gdb.dwarf2/debug-names.exp: break _start expanded symtab ... Fix this by simplifying the test-case to print _start rather running to it. Tested on x86_64-linux. Committed to trunk. Thanks, - Tom [gdb/testsuite] Fix gdb.dwarf2/debug-names.exp --- gdb/testsuite/gdb.dwarf2/debug-names.exp | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/gdb/testsuite/gdb.dwarf2/debug-names.exp b/gdb/testsuite/gdb.dwarf2/debug-names.exp index 0af5a93bea8..e625c1fbb7a 100644 --- a/gdb/testsuite/gdb.dwarf2/debug-names.exp +++ b/gdb/testsuite/gdb.dwarf2/debug-names.exp @@ -70,10 +70,7 @@ gdb_assert { [string equal $index "debug_names"] } ".debug_names used" # Verify that initially no symtab is expanded. gdb_test_no_output "maint info symtabs" -if ![runto _start] { - return -1 -} - -# Verify that breaking on _start actually expanded a symtab, rather than -# falling back on minimal symbols. -gdb_test "maint info symtabs" "name .*" "break _start expanded symtab" +# Verify that _start is found in the debuginfo, rather than in the minimal +# symbols, which would result instead in: +# $1 = {} $hex <_start> +gdb_test "print _start" " = {void \\(\\)} $hex <_start>"