From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id G9F/NoSHV2rK8AkAWB0awg (envelope-from ) for ; Wed, 15 Jul 2026 09:13:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=simark.ca; s=mail; t=1784121220; bh=ORXgRu+aH4O33qizZPrVIa9GhtQZzWWb2nu+uMBt+RQ=; h=Date:Subject:To:Cc:References:From:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=joQdZk8osKeBdjmpJH92muY+jpkyTm+GbM5GMvG5+bHP8EjQD4TI72yM+eyg/SLbR 9dTyqY8hqT/KQDgk27ftZyftqVvfhcscsLYBOL+MkC5KB4NLLF7pgyaHnBcafLOEKI Lre4/xK3Sh4NdSVdMiFJoEWBVTDDEVAciQX3bPko= Received: by simark.ca (Postfix, from userid 112) id C99B81E09E; Wed, 15 Jul 2026 09:13:40 -0400 (EDT) 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=sb8G6R1f; 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 0BB321E033 for ; Wed, 15 Jul 2026 09:13:40 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 96F374BA23C9 for ; Wed, 15 Jul 2026 13:13:32 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 96F374BA23C9 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=sb8G6R1f Received: from simark.ca (simark.ca [158.69.221.121]) by sourceware.org (Postfix) with ESMTPS id 522304BA2E17 for ; Wed, 15 Jul 2026 13:13:09 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 522304BA2E17 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 522304BA2E17 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=1784121189; cv=none; b=F9nxTOd+Z3xMKspgxH35ZlbHspTgje21dUfhx1nnbG7qtvaDSqJ7d293rnft1NZkGWuv0M9TxxaBpRSoWdKpDbcm4DkmY/anzMF7jgLLda+EOLerR+b7UQGbsHRxRHrmu11KfvdJMtR4Jdee8hRsSQaOFi3XZ8GJU/c7Q8xQiVg= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1784121189; c=relaxed/simple; bh=ORXgRu+aH4O33qizZPrVIa9GhtQZzWWb2nu+uMBt+RQ=; h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:From; b=b2aQzWUOPL1+hb7pBusPMoLib8AQn2Ee0WMpMN1FykHTqaIqL4/8DT+5P+0u9pISuVC8ByqSdA78ORsWSshAdlU4ZueOB8pELWd5hLxIsYhQZKWqZkOs9HGdshgKh+m2dzWgciAVulTnU6B/p4BIBbMHtN5e/fN3+eVtUWyaDns= 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=sb8G6R1f DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 522304BA2E17 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=simark.ca; s=mail; t=1784121188; bh=ORXgRu+aH4O33qizZPrVIa9GhtQZzWWb2nu+uMBt+RQ=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=sb8G6R1fyUKVrYcgipuFcm+RhuihOZrDs7Jm2BGEW7C363NWtMew01EDoJCmLMiXI IGRI0Ql9UmbgxtD9GodDp8lJiozkkSp8ZIFIiXVRLx5TFYj1teYdLGh6t7EQK84u/j BDQynMjO/ciuuYLy8oEc1ICVHtkrWhVkk3YxeJHU= Received: by simark.ca (Postfix) id 194AD1E033; Wed, 15 Jul 2026 09:13:07 -0400 (EDT) Message-ID: <3bb5dc17-a391-47a5-9548-c3d33b06136c@simark.ca> Date: Wed, 15 Jul 2026 09:13:07 -0400 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 3/4] gdb: distinguish GNU and MSVC flavors of the Windows OS ABI To: Pedro Alves , Eli Zaretskii Cc: gdb-patches@sourceware.org References: <20260714004507.1323332-1-pedro@palves.net> <20260714004507.1323332-4-pedro@palves.net> <86ik6hg4vu.fsf@gnu.org> <2c36a069-53ed-465f-8ecf-360cc272eaac@palves.net> <4953c47d-3904-4df4-945b-4693c2df9dad@simark.ca> Content-Language: fr From: Simon Marchi In-Reply-To: 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 7/15/26 7:18 AM, Pedro Alves wrote: > On 2026-07-15 02:21, Simon Marchi wrote: >> On 2026-07-14 18:15, Pedro Alves wrote: >>> On 2026-07-14 12:57, Eli Zaretskii wrote: >>> * GDB now distinguishes between the GNU (MinGW) and MSVC Windows ABIs. >>> >>> The "set osabi" command accepts two new values, "Windows-GNU" and >>> "Windows-MSVC". The GNU ABI is for code produced by MinGW >>> toolchains, while the MSVC ABI is for code produced by Microsoft's >>> MSVC compiler (though see the PDB note below), or Clang targeting >>> one of {i686,aarch64,x86_64}-pc-windows-msvc. The existing >>> "Windows" value continues to work and now means "let GDB pick the >>> flavor": GDB uses the configured default OS ABI (from --target) when >>> that is a Windows flavor, and otherwise assumes the GNU flavor. For >>> example, --target=x86_64-pc-windows-msvc defaults to the MSVC ABI, >>> and --target=x86_64-w64-mingw32 defaults to GNU ABI. Similarly for >>> the i686 and AArch64 variants. See "New targets" entry below. >> >> What happens if you build a GDB with --enable-targets=all and load a >> .exe? Is either ABI preferred over the other? > > The preferred one is taken out of --target, defaults to GNU. > --enable-targets=foo,bar,all does not affect it. I was thinking when building GDB on Linux (with --target that defaults to something Linux) with --enable-targets=all, i.e. a typical development build. In that case, the --target does not help to choose an ABI, so the fallback must come from somewhere else. Simon