From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id YH8pK6k0NGMiVQEAWB0awg (envelope-from ) for ; Wed, 28 Sep 2022 07:48:57 -0400 Received: by simark.ca (Postfix, from userid 112) id 9E9F01E112; Wed, 28 Sep 2022 07:48:57 -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=dqrXeWF0; 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=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RDNS_DYNAMIC,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from sourceware.org (ip-8-43-85-97.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 013061E0D3 for ; Wed, 28 Sep 2022 07:48:55 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 5594D3857C44 for ; Wed, 28 Sep 2022 11:48:55 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5594D3857C44 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1664365735; bh=GG5MtmTZsyxdDafRAHfIioiDksPGss8Gdw2hzTmwxFU=; h=Date:To:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=dqrXeWF0DfTkOv37Ye/hGN5Y3A8WP1ASphSIwchmeVpasU7F5QKZTu+rqKiNowPjB +0R+oQPFofW5oCVQZhNajmO4j28ouSp12ASfjkVB9UXMFPVob+04KPQs9ZsW9xKi7O Lp5kEktUYsrJDoQqPvJ4qwAcxtr2fRHnDfXu3FkA= Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) by sourceware.org (Postfix) with ESMTPS id F28103858C83 for ; Wed, 28 Sep 2022 11:48:34 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org F28103858C83 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 A9FA61FA20 for ; Wed, 28 Sep 2022 11:48:33 +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 986FB13677 for ; Wed, 28 Sep 2022 11:48:33 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id Fb4rJJE0NGMjLQAAMHmgww (envelope-from ) for ; Wed, 28 Sep 2022 11:48:33 +0000 Date: Wed, 28 Sep 2022 13:48:32 +0200 To: gdb-patches@sourceware.org Subject: [PATCH][gdb/testsuite] Fix gdb.mi/mi-sym-info.exp on openSUSE Tumbleweed Message-ID: <20220928114830.GA23860@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, On openSUSE Tumbleweed, I run into: ... FAIL: gdb.mi/mi-sym-info.exp: List all functions from debug information only ... The problem is in matching this string: ... {name="_start",type="void (void)",description="void _start(void);"} ... using regexp fun_re, which requires a line field: ... set fun_re \ "\{line=\"$decimal\",name=${qstr},type=${qstr},description=${qstr}\}" ... Fix this by making the line field optional in fun_re. Tested on x86_64-linux. Any comments? Thanks, - Tom [gdb/testsuite] Fix gdb.mi/mi-sym-info.exp on openSUSE Tumbleweed --- gdb/testsuite/gdb.mi/mi-sym-info.exp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gdb/testsuite/gdb.mi/mi-sym-info.exp b/gdb/testsuite/gdb.mi/mi-sym-info.exp index 7b936061759..2f723ece882 100644 --- a/gdb/testsuite/gdb.mi/mi-sym-info.exp +++ b/gdb/testsuite/gdb.mi/mi-sym-info.exp @@ -38,7 +38,8 @@ mi_clean_restart $binfile mi_runto_main set qstr "\"\[^\"\]+\"" -set fun_re "\{line=\"$decimal\",name=${qstr},type=${qstr},description=${qstr}\}" +set fun_re \ + "\{(?:line=\"$decimal\",)?name=${qstr},type=${qstr},description=${qstr}\}" set type_re "\{(?:line=\"$decimal\",)*name=${qstr}\}" set sym_list "\\\[${fun_re}(?:,$fun_re)*\\\]" set type_sym_list "\\\[${type_re}(?:,$type_re)*\\\]"