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 51C3D3858D28 for ; Mon, 28 Nov 2022 22:09:55 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 51C3D3858D28 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 7756B21B9A; Mon, 28 Nov 2022 22:09:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1669673394; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=sdWiOSQ/Fo+7s7MtBowbSLiXcj9vKeYQYXGq6ybFNM0=; b=VBcAXhfK6JO0O4+UitWJo7elaC/VniqrrZq8jKQrhHJ1G1wnUKFX/UwZ+KrIH+mdAzEvmv ESRMkRMzs2gN0h7EuH3SpBHrFW3XomHUiExoCce6NgexLmDkNlaFFuieX9+rLBP8i7LlzV 5v+WltXz8U+CPbvhqd9wrYC6W/kG9FM= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1669673394; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=sdWiOSQ/Fo+7s7MtBowbSLiXcj9vKeYQYXGq6ybFNM0=; b=9+LHhFKdazR+EOmcdX56J5RvNJnpDKZ7rKyAdadwTlhLIUSJRv8eyifc4cKJVNPp6vMnTa o4Ow2L/fWWlj7yBA== 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 4EE2113273; Mon, 28 Nov 2022 22:09:54 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id 5PcTErIxhWM6BAAAMHmgww (envelope-from ); Mon, 28 Nov 2022 22:09:54 +0000 Message-ID: Date: Mon, 28 Nov 2022 23:09:53 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.2 Subject: Re: [pushed] [gdb/testsuite] Fix gdb.ada/out_of_line_in_inlined.exp for ppc64le Content-Language: en-US To: Carl Love , gdb-patches@sourceware.org Cc: Ulrich Weigand , Tom Tromey , Will Schmidt References: <20221128162134.20424-1-tdevries@suse.de> <3d15ada9-ea26-e77a-26ed-5860bb83c113@suse.de> <42f0be03aa35e0f6163493ab57cd049b83db47a2.camel@us.ibm.com> From: Tom de Vries In-Reply-To: <42f0be03aa35e0f6163493ab57cd049b83db47a2.camel@us.ibm.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.7 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,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 List-Id: On 11/28/22 22:44, Carl Love wrote: > On Mon, 2022-11-28 at 22:31 +0100, Tom de Vries wrote: >>> then I run the test I get: >>> >>> make check RUNTESTFLAGS='GDB=/home/carll/bin/gdb >>> gdb.ada/out_of_line_in_inlined.exp ' > out >>> WARNING: Couldn't find the global config file. >>> WARNING: Couldn't find tool init file >>> WARNING: Couldn't find the global config file. >>> WARNING: Couldn't find tool init file >>> WARNING: Couldn't find the global config file. >>> WARNING: Couldn't find tool init file >>> WARNING: Couldn't find the global config file. >>> WARNING: No tool specified >>> WARNING: Couldn't find the global config file. >>> ERROR: tcl error sourcing /home/carll/GDB/build- >>> test/gdb/testsuite/../../../binutils-gdb- >>> test/gdb/testsuite/gdb.ada/out_of_line_in_inlined.exp. >>> ERROR: tcl error code TCL LOOKUP VARNAME decimal >>> ERROR: can't read "decimal(\.[0-9]+)": variable isn't array >> >> Ah I see, yes the $var($index) is tcl syntax for accessing an array >> element. >> >> So, this should work: ${decimal}(\\.$decimal)? > > Yes, that also works for me as well as $bkptno_num_re which I mentioned > in my previous email work for me. I guess my preference would be > $bkptno_num_re if it also works for you. That one doesn't work. As mentioned in the comment, it attempts to match: ... # A regular expression that matches a breakpoint hit with a breakpoint # having several code locations. set bkptno_num_re "$decimal\\.$decimal" ... in other words, "1.1" and in my case there's only one code location, in other words, "1". Thanks, - Tom