From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id GRwqBpc3MGlgChUAWB0awg (envelope-from ) for ; Wed, 03 Dec 2025 08:13:59 -0500 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=jqALdVJY; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 15A4E1E0B3; Wed, 03 Dec 2025 08:13:59 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-0.1 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED,RCVD_IN_VALIDITY_RPBL_BLOCKED, RCVD_IN_VALIDITY_SAFE_BLOCKED autolearn=no autolearn_force=no version=4.0.1 Received: from 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 138211E08D for ; Wed, 03 Dec 2025 08:13:58 -0500 (EST) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 994D348F1125 for ; Wed, 3 Dec 2025 13:13:57 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 994D348F1125 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1764767637; bh=qY0M8y2gSDoGBuMjPqwTgvk9jvVnnilTckPszZyLnTk=; h=Subject:To:Date:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=jqALdVJYx8J7QMG7pMFA/qqKMI2+fbYq/eDwYbpFD15GBInbxeDppKFNygmfS4zFt kbSwtfNNB5E3eseN7VGLSozKST5cZMQi/mjCxTjyiWghcYxqeksaoPwy5pomRNLe11 jIMRS04MSTUjcgHGTvhwQKXS+zMImsKLjpynrqeA= Received: from eggs.gnu.org (eggs.gnu.org [209.51.188.92]) by sourceware.org (Postfix) with ESMTPS id 1BE494537B81 for ; Wed, 3 Dec 2025 13:13:25 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 1BE494537B81 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 1BE494537B81 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1764767605; cv=none; b=HGFUS7UFdunUpXtfUEcaSo0kgsaTLjjfSB0tAAWymHzpJjvpL5Iwip9OsL0JOgvMtbNeCAzp9Fqv2a8hGdiooD3HM+ScStIdInvP30tcBLgWqd1z2vW4ltkEbnawg/eao7FzU6DVNV05PPhJoByAWzvXTlkU8NlOSOcWuEYwNtA= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1764767605; c=relaxed/simple; bh=EWx/xF60jGX03QBbElbs5HQ16V/x6HwvfVb0YLo1lXY=; h=DKIM-Signature:Message-ID:Subject:From:To:Date:MIME-Version; b=l0702kje72ifRQGmBeHwznCfudzaOo3OAh+jer201Zbg+1ZZEwQXW8ln1LbbH4XzI2Q62Gr0loseGOr6nMamiDR/8UQSgqSglZ30mvqs0A60hCW3Jg1MfZhuz9GyCvQyDM6gDt9oGLDRQ+P9uldl/pX5xSDaovDeehfTfqJ4QS0= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1BE494537B81 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vQmfc-00011a-Dq; Wed, 03 Dec 2025 08:13:24 -0500 Message-ID: <06f0c692e3392a1040506f17929b42fd9a863ed4.camel@gnu.org> Subject: Re: GDB 16.3: is it possible to cross-debug an x64 core from ARM? To: Simon Marchi , gdb@sourceware.org Date: Wed, 03 Dec 2025 08:13:21 -0500 In-Reply-To: <41e77752-34ad-463a-99a1-9c35b7220b16@simark.ca> References: <2f8e6564c0110db9be7ed9b5ab78ee5c9349ca0a.camel@gnu.org> <3188e560-bf2b-4b31-9347-9ed870fb3eb3@simark.ca> <41e77752-34ad-463a-99a1-9c35b7220b16@simark.ca> Organization: GNU's Not UNIX! Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.58.2 (by Flathub.org) MIME-Version: 1.0 X-BeenThere: gdb@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Paul Smith via Gdb Reply-To: psmith@gnu.org Errors-To: gdb-bounces~public-inbox=simark.ca@sourceware.org Sender: "Gdb" On Mon, 2025-12-01 at 16:13 -0500, Simon Marchi wrote: > I think I found the problem: >=20 > https://gitlab.com/gnutools/binutils-gdb/- > /blob/887bcaf98ea8e1ef76f6dd429b01b5258a782172/sim/configure.ac#L73 >=20 > We essentially do: >=20 > =C2=A0=C2=A0=C2=A0 for targ in aarch64-unknown-linux-gnu x86_64-linux-gnu= ; do > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 // try to match $targ against = all known targets > =C2=A0=C2=A0=C2=A0 done Thanks, I was in the middle of looking at that when I got your email :) I submitted a patch to fix this: https://sourceware.org/pipermail/gdb-patches/2025-December/223119.html I did it a different way than the simplest option, but that to me seems safer and more reliable. I tried to keep with the same style used in other sh code in configure.ac.