From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id hxO1BRwa/2r6diAAWB0awg (envelope-from ) for ; Thu, 19 Nov 2026 10:47:40 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=simark.ca; s=mail; t=1795103260; bh=lzMUYXlBZ4CKXYGLctW63f5imhDG2m/ILrgE42sl5+o=; h=Date:Subject:To:References:From:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=uE/ox64vNdPKby5yNnLNr1VTfWCniSNxKkAqTkHoGLYTKLGhvSuRMxjIl9d9hMlRQ ta3l/lwaJwmKMXudSK8LPaZw2UmMNGgm1/cdP9wMgkM/9vNBV79viUEbT2SFX0NntA wj5bgbs2KCGiKfxe/x5v9CiKZuDJujtRgxCIlBGo= Received: by simark.ca (Postfix, from userid 112) id 04BB51E023; Thu, 19 Nov 2026 10:47:40 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-5.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 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=VXVlwHLf; dkim-atps=neutral Received: from vm01.sourceware.org (vm01.sourceware.org [IPv6:2620:52:6:3111::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 59CF91E023 for ; Thu, 19 Nov 2026 10:47:38 -0500 (EST) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 0B7A44BA2E21 for ; Thu, 19 Nov 2026 15:47:37 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0B7A44BA2E21 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=VXVlwHLf Received: from simark.ca (simark.ca [158.69.221.121]) by sourceware.org (Postfix) with ESMTPS id 92E6C4BA2E31 for ; Thu, 19 Nov 2026 15:46:09 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 92E6C4BA2E31 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 92E6C4BA2E31 Authentication-Results: sourceware.org; arc=none smtp.remote-ip=158.69.221.121 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1795103169; cv=none; b=at5GYNwsBcopHFGPuWdEhDzG8Q2pp7EpzfCSnwClz1O5sgrXqVS9vOQb0ippj8xVSL0+I12u8rHYjFHBi6Sa7KBXxAN212kNbqCKu4m3hDFCHIfhMs4fI2DFpphCWiZfXR3YSHrxJ6SBVy6qP5Uv9sRYFkPRIA0+o0F4ZxbJ5RY= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1795103169; c=relaxed/simple; bh=lzMUYXlBZ4CKXYGLctW63f5imhDG2m/ILrgE42sl5+o=; h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:From; b=az6JK+HreH0Eqt/rop+NYcQiGgmfFOpGm00VXy7d+LJPe5r75eabyPH4vFHF2IlyWZfT/7HEwebq/DVb/hdveSMilIkKpYOyK0/M7DpxDKzw7z+tBVEtnPosG0f2F/JxxFYqTz0R919o9Kuqq/y9qRoaNFx6HoFBnQQSKlfwhCE= ARC-Authentication-Results: i=1; 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=VXVlwHLf DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 92E6C4BA2E31 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=simark.ca; s=mail; t=1795103168; bh=lzMUYXlBZ4CKXYGLctW63f5imhDG2m/ILrgE42sl5+o=; h=Date:Subject:To:References:From:In-Reply-To:From; b=VXVlwHLfLFBP4ePQstqohwoV6Bkz1G3oJa4a2BGiDc52K0kbkvBNq+vwjdguRkxpn QLxJt7hdmTtfVsNgDlnqpDPkc0NDbawxrO3rL1GeSycmG/eOjqRgFlKii938RQt+L4 bpjbf6/zS0U48N748n9gYtxhbhfnGcoGsBlzcPcI= Received: by simark.ca (Postfix) id 541AA1E023; Thu, 19 Nov 2026 10:46:08 -0500 (EST) Message-ID: Date: Thu, 19 Nov 2026 10:46:07 -0500 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3] gdb/testsuite: add support for running tests using QEMU To: Jan Vrany , gdb-patches@sourceware.org References: <20261110232643.2945321-1-jan@vrany.io> Content-Language: fr From: Simon Marchi In-Reply-To: <20261110232643.2945321-1-jan@vrany.io> 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 11/10/26 6:29 PM, Jan Vrany wrote: > Below is a v3 of patch adding support for running tests using QEMU. > > The v1 submission is here: > > https://inbox.sourceware.org/gdb-patches/20261026100153.1789950-1-jan@vrany.io/ > > The v2 submission is here: > > https://inbox.sourceware.org/gdb-patches/20261027135827.3868769-1-jan@vrany.io/ > > Changes in v3: > > * This version *does not* use unix sockets. I tried but quickly run > into a issues with limited path length and socket cleanups so > I left it for later. > > * Updated the comment in qemu-user.exp and added example with QEMU_FLAGS. > > * Fixed a number of TCL coding issues pointed out by Simon > > * If given --target is not yet supported by qemu-user board, do not > make it hard error as long as both QEMU and CROSS are supported > (if both are provided, --target value is effectively ignored). > > * Extracted qemu cleanup code to new function - qemu_reap - and use it. > Since I decided to use it also in case QEMU terminates immediately, > I dropped the warning about failing to close QEMU (since in that case, > channel would be already closed). > > * Drop handling of CFLAGS_FOR_TARGET environment (when I tried, I did not > realize I had to put it into RUNTESTFLAGS in orde to make it work without > extra code). > > * Use get_portnum instead of generating port randomly. > > * Consistently prefix all log messages / warnings with "qemu-user:" to > ease debugging. Thanks, I think that looks good. Approved-By: Simon Marchi Let me know if you intend to do the "set sysroot" thing to avoid reading the libraries though qemu, if not I'll try. Simon