From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id gEfdCZNYaWl4XQUAWB0awg (envelope-from ) for ; Thu, 15 Jan 2026 16:13:55 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=simark.ca; s=mail; t=1768511635; bh=KsdoNEcsbMDk3ZdRbEQK9ihgKVaSvcNx1RIZR/bHXz4=; h=Date:Subject:To:References:From:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=OHwfU+MUJhBE62RMx/m07ShlDPTJRXq577F+qWz84HM6hRxtWjC2caOpszYKZ7zsb 91aMxlYdXu34gu4N88yGnHAZ4CY0CKksTwaj7lh9fjWtiLCPBauZeudPSZyvqgFcvN yZZizzaxkV402jO63/nkxZpkAcD1uVZ+DbGuH0Do= Received: by simark.ca (Postfix, from userid 112) id 193221E08D; Thu, 15 Jan 2026 16:13:55 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-2.4 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,RCVD_IN_VALIDITY_CERTIFIED_BLOCKED, RCVD_IN_VALIDITY_RPBL_BLOCKED,RCVD_IN_VALIDITY_SAFE_BLOCKED autolearn=ham autolearn_force=no version=4.0.1 Authentication-Results: simark.ca; dkim=pass (1024-bit key; unprotected) header.d=simark.ca header.i=@simark.ca header.a=rsa-sha256 header.s=mail header.b=P4GzlIT5; dkim-atps=neutral Received: from vm01.sourceware.org (vm01.sourceware.org [38.145.34.32]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 62BF91E08D for ; Thu, 15 Jan 2026 16:13:54 -0500 (EST) Received: from vm01.sourceware.org (localhost [127.0.0.1]) by sourceware.org (Postfix) with ESMTP id 3F5544BA2E1D for ; Thu, 15 Jan 2026 21:13:53 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3F5544BA2E1D Authentication-Results: sourceware.org; dkim=pass (1024-bit key, unprotected) header.d=simark.ca header.i=@simark.ca header.a=rsa-sha256 header.s=mail header.b=P4GzlIT5 Received: from simark.ca (simark.ca [158.69.221.121]) by sourceware.org (Postfix) with ESMTPS id 684864BA2E25 for ; Thu, 15 Jan 2026 21:13:16 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 684864BA2E25 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=simark.ca Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=simark.ca ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 684864BA2E25 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=158.69.221.121 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1768511596; cv=none; b=g7iOY+Qn3x5BPA+AXZpqjKL+zr6cv4SvRiiSMGcsj9OJXWkklZzybx7em5V+P+r5TSE3OObzM+KisPc9bJXwIzP9b6k+fImTZTG9uWRcL8j3bFAmLsZtBsvIPuyTNR5piBFUJSyMWxbzQVv5CXVboHrlOyUMmWKZzNbjfR6EjEM= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1768511596; c=relaxed/simple; bh=KsdoNEcsbMDk3ZdRbEQK9ihgKVaSvcNx1RIZR/bHXz4=; h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:From; b=tnO/Ml6EyyH6P+Yuzyrz2uMeIK4mI/jZjb7Yw4wwk2yRLTHlduDiFhRL/QPj17nPF6H+gMdqVY3YeCKo64j78Tq4GJckRGzMCOCdjyK3gcuXhWVBO0nRwPRQ8grCMe08kJXvMvCsY1sbPYzFtWkwzd78XBwK4Ukxc8PVblLtL7Y= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 684864BA2E25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=simark.ca; s=mail; t=1768511595; bh=KsdoNEcsbMDk3ZdRbEQK9ihgKVaSvcNx1RIZR/bHXz4=; h=Date:Subject:To:References:From:In-Reply-To:From; b=P4GzlIT5nP2pBo81gnaXEMhuXIGhiKhf11L0u0nOqaR+9qwZZhe1vmKOQU422zggU /8BiKgiojQcmZZM/y43xye+rVQ/bS7VTyMfRcMo6+uJSubxCGKd1N36MHuIOj3Z+bp m4+vXLEHBOfSAHbW6Eoiwf4KbZTyGfy1xnluVXA8= Received: by simark.ca (Postfix) id E90BF1E08D; Thu, 15 Jan 2026 16:13:14 -0500 (EST) Message-ID: Date: Thu, 15 Jan 2026 16:13:14 -0500 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] gdb/testsuite: fix failure in gdb.server/fetch-exec-and-args.exp To: Andrew Burgess , gdb-patches@sourceware.org References: <3d52893e-d2a8-48e9-aab0-b0c85d736de4@simark.ca> <19b4a897d945398861334de10c7c2c3367ecec3a.1768420854.git.aburgess@redhat.com> Content-Language: fr From: Simon Marchi In-Reply-To: <19b4a897d945398861334de10c7c2c3367ecec3a.1768420854.git.aburgess@redhat.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces~public-inbox=simark.ca@sourceware.org On 1/14/26 3:01 PM, Andrew Burgess wrote: > Bug PR gdb/33792 reported a gdb.server/fetch-exec-and-args.exp FAIL > when using the native-gdbserver board: > > FAIL: gdb.server/fetch-exec-and-args.exp: packet=on: set_remote_exec=false: test_server_with_no_exec: show remote exec-file > > The actual test output looks like this: > > (gdb) show remote exec-file > The remote exec-file is unset, using automatic value "/tmp/build/gdb/testsuite/outputs/gdb.server/fetch-exec-and-args/fetch-exec-and-args". > (gdb) FAIL: gdb.server/fetch-exec-and-args.exp: packet=on: set_remote_exec=false: test_server_with_no_exec: show remote exec-file > > This test actually fails with native-gdbsever and > native-extended-gdbserver boards. The problem is that these boards > clear the sysroot. > > This exact test has the following conditions: > > + The qExecAndArgs is in use (see 'packet=on'). > > + We're not explicitly doing 'set remote exec-file ...' (see > 'set_remote_exec=false'). > > + The test starts gdbserver without an executable (see > 'test_server_with_no_exec'). > > + And because of the native-gdbsever board, the sysroot is "". > > What this means is that GDB knows that gdbserver doesn't have an > executable thanks to qExecAndArgs, the user hasn't set an executable > for GDB to use when starting a new inferior, but GDB does know that > GDB and gdbserver can see the same filesystem due to the sysroot > setting. GDB will then automatically use the current executable as > the remote executable name. The test script doesn't expect this case, > and so the test fails. > > Fix this by adjusting the script to expect the 'using automatic value > ...' text when appropriate. > > I also extended the test_server_with_no_exec proc to take a new flag > 'clear_sysroot', we now run the test with the sysroot set to 'target:' > and with the sysroot set to "", even when using the 'unix' board. > > Additionally, I ran the test through check-all-boards and found one > additional failure, when using --host_board=local-remote-host-native > and --target_board=local-remote-host-native. In this case GDB copies > the executable to the remote host, which changes its filename. When > the filename appears in the 'using automatic value ...' text, I was > expecting the filename assuming a local host. > > I could fix this, but it doesn't seem worth the extra complexity for > this one test, so I've just set the test to be skipped for that one > configuration. > > Now, when using check-all-boards, I'm seeing no failures. > > Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=33792 It appears to fix the failure on my side. Thanks for the quick fix and for improving the test. Approved-By: Simon Marchi Simon