From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id UKOYLdplkGQENQgAWB0awg (envelope-from ) for ; Mon, 19 Jun 2023 10:27:38 -0400 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=uB7RHOTq; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id B6A121E0BB; Mon, 19 Jun 2023 10:27:38 -0400 (EDT) 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 A308B1E0AC for ; Mon, 19 Jun 2023 10:27:36 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 275FA385841E for ; Mon, 19 Jun 2023 14:27:36 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 275FA385841E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1687184856; bh=t3H5d454ULUsi9O/ZnI/fv+vK2RLpHd1x/3WO8dl/bY=; h=Date:Subject:To:References:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=uB7RHOTqoP1eh6bPcEj5JuZx3IOLYvMHq1qo+p6GhWvfv8Ejxo7IvrgUVAVr0LCMi ByHoscoO8R890r9X9R2JzGXM6OMqCY2tp7DXnStYvUCG+UC7qOrJTXMDdmMqMnDlei YLLWtxmjo1BOEsNXdBYtggechTttfajWjeU3iIpo= Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on2049.outbound.protection.outlook.com [40.107.15.49]) by sourceware.org (Postfix) with ESMTPS id E0E2E3858D3C for ; Mon, 19 Jun 2023 14:27:16 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E0E2E3858D3C Received: from AS9PR06CA0070.eurprd06.prod.outlook.com (2603:10a6:20b:464::21) by DB9PR08MB7469.eurprd08.prod.outlook.com (2603:10a6:10:36f::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6500.36; Mon, 19 Jun 2023 14:27:05 +0000 Received: from AM7EUR03FT043.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:464:cafe::53) by AS9PR06CA0070.outlook.office365.com (2603:10a6:20b:464::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6500.36 via Frontend Transport; Mon, 19 Jun 2023 14:27:05 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; pr=C Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by AM7EUR03FT043.mail.protection.outlook.com (100.127.140.160) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6521.21 via Frontend Transport; Mon, 19 Jun 2023 14:27:05 +0000 Received: ("Tessian outbound 8b05220b4215:v136"); Mon, 19 Jun 2023 14:27:05 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 2ce71231caf8800d X-CR-MTA-TID: 64aa7808 Received: from 55187f1e0003.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 60447BC1-9BE0-44CE-B2AA-EEA9A77DC9EA.1; Mon, 19 Jun 2023 14:26:58 +0000 Received: from EUR04-DB3-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 55187f1e0003.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Mon, 19 Jun 2023 14:26:58 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=O8zsHBII192BbvtKYppPWeL1FEw9TKRHpayWKMb8t8wKteoADasvwdLgQIFJFQ9o31PMs8LeOKqseSHMyBnZG3C/o6k5OXcHRvFm+ZHbFZ6P8teIak0MYBhDuU1P1lL/4Ot/hljMMZYii0rFhw20cU8xHuTMYxSwfC89EAk/ug/aSx9yaef0hqobAlnM+DANueV8focBMc/xTbDVeA+aGHp9EIVwKWQYolg4tuS33TUdxsND7DQPsAwtaiEwOxLE1Mkqbi4TZ03HCs1IMQh0YB2Z5H3QZT/Y2xenhaoZsE0UQbW74hdI4Aa6XC9ze1kbmOYcMzYjdGeGAmx6Ln0cAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=t3H5d454ULUsi9O/ZnI/fv+vK2RLpHd1x/3WO8dl/bY=; b=Csj1z/b6Zehuad8twLymduZCiXl5lD4ueiT4adiGUILHy/4uo7Vn9C530mNH2xnklBFaqMKY7CFXoSeeWRYjPIbG4O98b4wQ3++AHwsETcY1VjhwxqxmDGiWeIincJPwLomakaKwCAM9KHW0NqWprD3aeQosJSVbxURdTJYurrnWFEV0wSe5HgR/v1+o3neNwNAOXhWs1g8cO4OYJ2HW0GsqBLg9WY+juMZRF9ycPc2jebZBBJxsb6ialzGesr6faLY6LgEY/HtsTxXlq9PuizB2LPM2Dd2k4WBUuu8eTSQA7eVk/c6OGKk1u64s6VLMt7ly8ZkJ9t/eFbqEKoikJg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none Authentication-Results-Original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; Received: from VI1PR08MB3919.eurprd08.prod.outlook.com (2603:10a6:803:c4::31) by AS8PR08MB6293.eurprd08.prod.outlook.com (2603:10a6:20b:23e::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6500.36; Mon, 19 Jun 2023 14:26:57 +0000 Received: from VI1PR08MB3919.eurprd08.prod.outlook.com ([fe80::c6b8:4dc0:6f9:7f40]) by VI1PR08MB3919.eurprd08.prod.outlook.com ([fe80::c6b8:4dc0:6f9:7f40%3]) with mapi id 15.20.6500.031; Mon, 19 Jun 2023 14:26:57 +0000 Message-ID: Date: Mon, 19 Jun 2023 15:26:56 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [pushed] [gdb/testsuite] Clean up before compilation in gdb.ada/call-no-debug.exp Content-Language: en-US To: Tom de Vries , Tom Tromey , Tom de Vries via Gdb-patches References: <20230616113305.27867-1-tdevries@suse.de> <877cs345ij.fsf@tromey.com> <30dc92ca-6fd5-46f1-d716-463be55cba98@suse.de> <9c0db209-2d05-213c-0491-1debe35fb403@arm.com> In-Reply-To: <9c0db209-2d05-213c-0491-1debe35fb403@arm.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-ClientProxiedBy: LO4P123CA0048.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:152::17) To VI1PR08MB3919.eurprd08.prod.outlook.com (2603:10a6:803:c4::31) MIME-Version: 1.0 X-MS-TrafficTypeDiagnostic: VI1PR08MB3919:EE_|AS8PR08MB6293:EE_|AM7EUR03FT043:EE_|DB9PR08MB7469:EE_ X-MS-Office365-Filtering-Correlation-Id: fb206d1c-322a-47ab-c331-08db70d14194 x-checkrecipientrouted: true NoDisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: 0g3sufS/AV1EJVGh7jRx87b69FGZpiRha6qyflGGX8NAtqaaC7ks6RVe9ng9H0adodKMLebhH51KIcpfD9uNFKrtijTQI8GhQ8c2cNCTwFWhQtKEtw1l4SzgHgo7UnQUb/Ha/mjJMCP+zd/2bXBTSVKSQsu7KPtlNMrLkk46N+qdrll9QkI3b2a1GJagdjkX9Gs6eli9QzANUDsacdb0pu5A9snl0urqwp2guSSlvOQyaBiL4jeUQ5JkylMld4JvnNx8E9Qyxpb6ifNVADu8rP7QhcuaxEfmNi8SIYoDhGkY6Y2E1KVch57vHbt56GI9RTIe0h7JPPvjSctJlGIUXJHPBtXT5o96kOta8Idd3eW5wb4p4pBuvgTLEnyZ0uF+hNimJlTKZ3E+m6NLzxJift/w9id1bzLlaYhdmpinn0fjsygqEX1L8s/F3wDj41KKuQns0+CmG0BfN8XjtLUzHfpfv6O7n+TQmMjanIpAMIWfN525HzYOz/zBnIJMSNlvkXQuBA1YKpouDVSAXouD0Q0uLqBFJgPbJE/xNECPtoZiD+cmmo+p0L7QLzI2f5FQ/lctRa9STZXXBz6k3bqb4zdK19eYPwxfireBpYTGE6UUSK+9dhpn6U+kMrHUXxkcOPw4bu2er0hLtYztB73amQ== X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR08MB3919.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230028)(4636009)(376002)(396003)(136003)(39860400002)(346002)(366004)(451199021)(44832011)(86362001)(31696002)(41300700001)(8676002)(8936002)(5660300002)(66556008)(66476007)(66946007)(316002)(31686004)(2616005)(38100700002)(83380400001)(84970400001)(186003)(36756003)(6512007)(26005)(6486002)(6506007)(53546011)(478600001)(110136005)(2906002)(45980500001)(43740500002); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR08MB6293 Original-Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM7EUR03FT043.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 44d01fe8-4110-4589-e5fa-08db70d13c8f X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: lhdlA/Y2yXjj5riaj572g3YHaZ93OAKbJ1FYine0gfN/6uH6XNks8IrkJpWtKvc8rcjD9WPolLzaimJGDCVWPhrQnR3unmuztU3yZYOIKnPrqbkYiCPF+kR+afBru6zdQcbpVR0JfGR79FcTY2mwXran4Bp39MS6BD15eiSxHsXc3g05QlhM5Gc7rbtXXPadcaGExi3X8nr8TI62GZR03K1Zn2wDtRvsBOtaDwpoHMgUgXHnKQVHcREQlJh9nYNCYQHfBsyFexAZ9ly3uDpwAYHcLHGwGNMcRBsjnv3esqPk+sy/Jn58SOEs4TZxzq9+9LY7/gxjsrrSztM0JmTEF4wSOLMc6Tv8XhezIQUQWnCOWgjZF1VbI+LW0ZLr4ifbWv0AeiZNkoETkuUrXnNzsZuqYdHjIIC4lOJVwOBf1YwOB5PGGG98NytWpH7P76RRtne6wuLLkTQSDsawPNRGY0yNSW97qyhq9uaGn4ArV0CJhsZABgrJsNGSPI3LGb6gYyx4Ua78C1ZjtiSa1jRDlkdbz9RDm/wGrgSXJSxcIjm6tlsksSA9lBtJdtYiE/jffDyaH/hm8MPHzgQ0negVgdaV3yZXG/+8iQKv47yRkD2kNChwNGp/IuNrKAxNzHSCSLH6TzNjBNFDMLYf9KfTCHaP+cK915/wfrHfdipV8slWoMEVOLb+GZkiPNkiq4pqhdgOjwiu3UcR4Ggs1TuOwMAdoGgbgygzxkm891OEblKXdnCASdiVV/JEU4KaBk7jvXBlSPkoUaBigqzxNUfNWQ== X-Forefront-Antispam-Report: CIP:63.35.35.123; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:64aa7808-outbound-1.mta.getcheckrecipient.com; PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com; CAT:NONE; SFS:(13230028)(4636009)(346002)(136003)(396003)(376002)(39860400002)(451199021)(46966006)(40470700004)(36840700001)(186003)(40460700003)(6512007)(26005)(53546011)(6506007)(82740400003)(36860700001)(40480700001)(2616005)(47076005)(81166007)(356005)(336012)(83380400001)(82310400005)(478600001)(41300700001)(31686004)(70206006)(70586007)(36756003)(8676002)(316002)(110136005)(8936002)(84970400001)(6486002)(31696002)(44832011)(86362001)(2906002)(5660300002)(43740500002); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jun 2023 14:27:05.3176 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: fb206d1c-322a-47ab-c331-08db70d14194 X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d; Ip=[63.35.35.123]; Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: AM7EUR03FT043.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR08MB7469 X-Spam-Status: No, score=-5.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, FORGED_SPF_HELO, KAM_DMARC_NONE, NICE_REPLY_A, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE, UNPARSEABLE_RELAY autolearn=no 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: , From: Luis Machado via Gdb-patches Reply-To: Luis Machado Errors-To: gdb-patches-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb-patches" On 6/19/23 15:25, Luis Machado wrote: > On 6/17/23 11:50, Tom de Vries via Gdb-patches wrote: >> On 6/16/23 20:38, Tom Tromey wrote: >>>>>>>> "Tom" == Tom de Vries via Gdb-patches writes: >>> >>> Tom> Running test-case gdb.ada/call-no-debug.exp with target board unix/-m64 works >>> Tom> fine, but if we run it again with target board unix-m32, we run into: >>> >>> Thanks for doing this. >>> >>> If gdb's test suite could detect when a new .exp is started, we could >>> make this always work by removing the corresponding standard output directory. >> >> Hi, >> >> thanks for the suggestion, I've implemented it in gdb_init.  WDYT? >> >> Thanks, >> - Tom > > Would this delete files unrelated to the specific test being executed? I started to see a number > of errors in the testsuite where tests executed in parallel can't find gdb.log. > > For instance: > > --- > > ERROR: tcl error sourcing binutils-gdb/gdb/testsuite/gdb.arch/aarch64-sve.exp. > ERROR: couldn't open "outputs/gdb.arch/aarch64-sve/gdb.log": no such file or directory > while executing > "log_file -a outputs/gdb.arch/aarch64-sve/gdb.log" > ("eval" body line 1) > invoked from within > "eval log_file $saved_log" > (procedure "get_compiler_info" line 51) > invoked from within > "get_compiler_info $language" > (procedure "test_compiler_info" line 4) > invoked from within > "test_compiler_info "clang-*"" > (procedure "gdb_compile" line 41) > invoked from within > "gdb_compile $src $obj $type $compile_flags" > (procedure "gdb_simple_compile" line 44) > invoked from within > "gdb_simple_compile $name $code $type $compile_flags temp_obj $default_compile_flags" > (procedure "gdb_can_simple_compile" line 2) > invoked from within > "gdb_can_simple_compile aarch32 [join $list \n]" > (procedure "gdb_real__is_aarch32_target" line 15) > invoked from within > "gdb_real__is_aarch32_target" > ("uplevel" body line 1) > invoked from within > "uplevel 2 $real_name" > (procedure "gdb_do_cache_wrap" line 3) > invoked from within > "gdb_do_cache_wrap $real_name {*}$args" > (procedure "gdb_do_cache" line 48) > invoked from within > "gdb_do_cache is_aarch32_target" > (procedure "is_aarch32_target" line 1) > invoked from within > "is_aarch32_target" > (procedure "is_aarch64_target" line 6) > invoked from within > "is_aarch64_target" > (procedure "gdb_real__allow_aarch64_sve_tests" line 6) > invoked from within > "gdb_real__allow_aarch64_sve_tests" > ("uplevel" body line 1) > invoked from within > "uplevel 2 [list $real_name {*}$args]" > invoked from within > "gdb_do_cache_wrap $real_name {*}$args" > (procedure "gdb_do_cache" line 48) > invoked from within > "gdb_do_cache allow_aarch64_sve_tests" > (procedure "allow_aarch64_sve_tests" line 1) > invoked from within > "allow_aarch64_sve_tests" > ("uplevel" body line 1) > invoked from within > "uplevel 1 $fn" > (procedure "require" line 11) > invoked from within > "require allow_aarch64_sve_tests" > (file "binutils-gdb/gdb/testsuite/gdb.arch/aarch64-sve.exp" line 18) > invoked from within > "source binutils-gdb/gdb/testsuite/gdb.arch/aarch64-sve.exp" > ("uplevel" body line 1) > invoked from within > "uplevel #0 source binutils-gdb/gdb/testsuite/gdb.arch/aarch64-sve.exp" > invoked from within > "catch "uplevel #0 source $test_file_name"" > > --- > > When reverting this patch, I no longer see the problem. Maybe it is deleting more than it should? Sorry, forgot to mention things work fine if you run the testsuite and the test serialized. If you pass -j2, for example, it runs into the problem above.