From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by sourceware.org (Postfix) with ESMTPS id 47906385840D for ; Mon, 12 Jun 2023 09:14:31 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 47906385840D Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=suse.de 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 7E15722849 for ; Mon, 12 Jun 2023 09:14:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1686561270; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=2Caask0iLcZxXqnrXdl9TQS6sgr5gYynY6mvnJS9Rgg=; b=mCsrRlRXIcxRTJbwbrtydXYZ2yPjcGaG17eWF3XsqFvGqJfkRzG2HiHEuVZItPXvZNYT28 3MEweCEdxVt4ObpxLKPpnb2ohQDPa+YCdcm22Z5Wkj0wsyCU+7rbPW9O0E/uoxriDhDKB6 hZcZl91VhQBGDIxzFvmgA9i3qA4c4yI= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1686561270; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=2Caask0iLcZxXqnrXdl9TQS6sgr5gYynY6mvnJS9Rgg=; b=KxKHCSLR2A3qhokcv4aSaRAQ9eRibKqY6knxfAUneNuaQ/MN875/B/7Bi3g+C9GVGvp2q5 4VBridTtxzHRWOBQ== 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 6CCF01357F for ; Mon, 12 Jun 2023 09:14:30 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id /ouIGfbhhmRLCgAAMHmgww (envelope-from ) for ; Mon, 12 Jun 2023 09:14:30 +0000 From: Tom de Vries To: gdb-patches@sourceware.org Subject: [pushed] [gdb/testsuite] Fix breakpoint regexp in gdb.ada/out_of_line_in_inlined.exp Date: Mon, 12 Jun 2023 11:14:47 +0200 Message-Id: <20230612091447.2743-1-tdevries@suse.de> X-Mailer: git-send-email 2.35.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-12.3 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,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: With a gdb 13.2 based package on openSUSE Tumbleweed i586, I ran into: ... (gdb) run ^M Starting program: out_of_line_in_inlined/foo_o224_021-all ^M [Thread debugging using libthread_db enabled]^M Using host libthread_db library "/lib/libthread_db.so.1".^M ^M Breakpoint 1.1, foo_o224_021.child1.child2 (s=...) at foo_o224_021.adb:26^M 26 for C of S loop^M (gdb) FAIL: gdb.ada/out_of_line_in_inlined.exp: scenario=all: \ run to foo_o224_021.child1.child2 ... I can reproduce the same issue with gdb trunk on x86_64, by using optimize=-O3 instead of optimize=-O2. Fix this by using $bkptno_num_re. Tested on x86_64-linux. PR testsuite/30539 Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=30539 --- gdb/testsuite/gdb.ada/out_of_line_in_inlined.exp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdb/testsuite/gdb.ada/out_of_line_in_inlined.exp b/gdb/testsuite/gdb.ada/out_of_line_in_inlined.exp index d14b1e70e64..c1c00c84931 100644 --- a/gdb/testsuite/gdb.ada/out_of_line_in_inlined.exp +++ b/gdb/testsuite/gdb.ada/out_of_line_in_inlined.exp @@ -34,7 +34,7 @@ foreach_with_prefix scenario {all minimal} { gdb_run_cmd gdb_test "" \ - "Breakpoint $decimal, ($hex in )?foo_o224_021\\.child1\\.child2 \\(s=\\.\\.\\.\\).*" \ + "Breakpoint ($decimal|$bkptno_num_re), ($hex in )?foo_o224_021\\.child1\\.child2 \\(s=\\.\\.\\.\\).*" \ "run to foo_o224_021.child1.child2" set opt_addr_in "($hex in)?" base-commit: 45601fb84d4705211b0477dd1bab2e73d39dc27c -- 2.35.3