From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id aUrOFXdYTWpiZSsAWB0awg (envelope-from ) for ; Tue, 07 Jul 2026 15:50:15 -0400 Authentication-Results: simark.ca; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=XdTMs97D; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 56BD11E098; Tue, 07 Jul 2026 15:50:15 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-6.4 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=unavailable autolearn_force=no version=4.0.1 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 E8E321E024 for ; Tue, 07 Jul 2026 15:50:14 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 1AD984BA2E32 for ; Tue, 7 Jul 2026 19:50:13 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1AD984BA2E32 Authentication-Results: sourceware.org; dkim=pass (1024-bit key, unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=XdTMs97D Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTP id D065F4BA2E0D for ; Tue, 7 Jul 2026 19:49:48 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org D065F4BA2E0D Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org D065F4BA2E0D Authentication-Results: sourceware.org; arc=none smtp.remote-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1783453788; cv=none; b=C2E7cDqGYc799v5EeAj3aCIDn72F9ApEQp17OjOWPHzdNKUkb25rC5gEZB5LFgD1mqGeNisDQsaabY0p1ak+kzUmEq1/M/aHdcjRHGl+v1RJBoMx+vxu7t7f7ZFjukpaLpgdcJGmHvY6YGoeSOshFI1LC+OutuDBIsmts2OIHeQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1783453788; c=relaxed/simple; bh=CVsc6Nuq+HkpgnqpAGia0L5nclZAPsJwGqYBYxILoTo=; h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:From; b=Apo3JbcpDpVXmyJnoMRMouIT9YZblO1qspYL6zCoq/BTpJVfkP2nPHPRenmflinbHj/idsDRCEM/GLtgjhglo5+K930qaYWjIGMtW/GcuVT/jdCTPfw58HaaG40RlDcdPTaWfloMziazKJVhZH3h2PudJH3mDE7qczLL7JR8l1s= ARC-Authentication-Results: i=1; sourceware.org; dkim=pass (1024-bit key, unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=XdTMs97D DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D065F4BA2E0D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1783453788; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=71G0j7MKA1n0jkySIav3APW3YpsWZq38P4QFgKnn5C0=; b=XdTMs97DrbFv4rWKFWAOoEuZRkUQP8zh9B0boMRj3iABVAcrLvtywHKLL/3w1o8rlZGWzz bZjJVcwvMg+htxXQFcd3PSigQn48SZg8+vg4Us/SgSYr+1r1XC29NO6vp2Pm3iVFFQmO4g SV37zYjF7tTaBGmpnwFEcm7p6Skiqmc= Received: from mail-qt1-f199.google.com (mail-qt1-f199.google.com [209.85.160.199]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-437-GE8lBNBEMSGoOnWJg0OQ0g-1; Tue, 07 Jul 2026 15:49:47 -0400 X-MC-Unique: GE8lBNBEMSGoOnWJg0OQ0g-1 X-Mimecast-MFC-AGG-ID: GE8lBNBEMSGoOnWJg0OQ0g_1783453787 Received: by mail-qt1-f199.google.com with SMTP id d75a77b69052e-51c12e43b98so861031cf.1 for ; Tue, 07 Jul 2026 12:49:47 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783453787; x=1784058587; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=71G0j7MKA1n0jkySIav3APW3YpsWZq38P4QFgKnn5C0=; b=BMB8UdmDNVtf49y9jNNTfmlDF//tOHmRvH+DI3pqPeTrDvQxwU/J8wWc1ac/vR34RZ womqA/8k8WcxQcq7DtGm9AEmW7dXVelQ418pz1h2Z1/MD/ztzq+2F4h2HGCKIQcHUZ35 hJM5tn3zRQKBAJbsYgQv+Z8T9AqnIoiUbMVwI0JrOd2kwqC4zL03Pr1LYDPd67a5kI8T /4IftdLkKN6kssGQedaFoeN0TM1bCgflhg/eyE4CsQIQvuIx2+OpWZPNO4PIF0ytuEFn QbuAtA/k6hVUYr2NVkWMSIGHHYHP7hAgpmed+Sz2Uz58jy+rVSeLHjWWetIM/RffnMvZ 8z4g== X-Gm-Message-State: AOJu0YyddDDMgD28hB8oFM48wlFfRxd164GDqt2OpjtMrDdxljfrxmZS RUcrvhW35Ra7kytTNlJikHm0YwcI+xSV5hfsMuosxaasuyfCHp1fpUe1sk+ThXZY36Jaqvpv4b5 i44FMBDW5obgfhy1cGa1eeizTIo9HrAbo2QH8B+rSprPA4Dc3qVPwvImj6uFSJ/Y= X-Gm-Gg: AfdE7cn0Sk0y5DZbcwbrlQafn946R3FoKls88ufaWjrkyO19IlCg2OpU5Qv3izWwGgg 5xETmkJ98kYPVEpznP5MZ0zLyk6rOFUhDm7VIwBoRNXAPzs0iBIJ/dDDiqb2+zQwEp6faDD3RP3 9f4v4XKImlTn1SdN6RcMjiGvt368SDLXu54WXsI6h79P0NYyFZZ5cxcZxJdO7YJNe4pinMLp4K1 Bj5/0LVNh/pPWAwwxMJqgePqpzAAQL7OrYA25WiJrWBhXWtAxxdJuuHjzyGsiGgP4kE9UYqXxQT RQqkQ47enxfKo6H1rwcjHiYrH7uurgHlwl2o/DoXq9qT77hvFu4U3MMYf9cg8MQRxpbahVTbcHz CzvterODri+TcXri5eQ== X-Received: by 2002:a05:622a:391:b0:51c:20:aea7 with SMTP id d75a77b69052e-51c747a0feamr74669411cf.9.1783453786641; Tue, 07 Jul 2026 12:49:46 -0700 (PDT) X-Received: by 2002:a05:622a:391:b0:51c:20:aea7 with SMTP id d75a77b69052e-51c747a0feamr74668961cf.9.1783453786026; Tue, 07 Jul 2026 12:49:46 -0700 (PDT) Received: from [150.1.200.157] ([172.56.105.224]) by smtp.gmail.com with ESMTPSA id d75a77b69052e-51c41abe756sm130459781cf.6.2026.07.07.12.49.45 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 07 Jul 2026 12:49:45 -0700 (PDT) Message-ID: Date: Tue, 7 Jul 2026 12:49:44 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 0/2] Fix ODR violations in regformat target descriptions To: Tom Tromey , Simon Marchi Cc: gdb-patches@sourceware.org References: <3ce6ea60-f107-480a-8ca3-d8a2de2ec6ec@simark.ca> <87a4sr4vvj.fsf@tromey.com> From: Keith Seitz In-Reply-To: <87a4sr4vvj.fsf@tromey.com> X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: kkT3VfLQazLo-zN3mC16kT2hw9euStPgmrbePlJ0P5s_1783453787 X-Mimecast-Originator: redhat.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed 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 6/18/26 10:10 AM, Tom Tromey wrote: >>>>>> "Simon" == Simon Marchi writes: > > Simon> Other than the little nit I sent on patch 1, this series LGTM (although > Simon> I still don't fully understand why regdat exists and how it works). > > I was curious about this as well. Like, how hard is it to remove this? > Since IIUC it's an obsolete way of writing a target description. From what I understand while hacking at this, you are correct. It is a very outdated way of writing a target description. The modern way is via XML/features. I asked Claude to explain what would it would take to get rid of this and update everything. Unless it is completely fabricating its response (and I have not read anything to suggest such), it is a non-trivial amount of work. The short of it is, there are six "legacy" targets with no XML backing whatsoever. These targets include padding registers, integer-only registers (missing FP), and other peculiarities which may be non-trivial to implement completely and/or correctly. [Or not -- I've not dug *that* deeply into it.] There are an additional 42 targets which are XML-backed that would also require some conversion. Testing all of these will be a nightmare. If you'd like, I can file a bug and add the complete Claude response. Just let me know. In the meantime, I've pushed these patches. Thank you to you and Simon for your reviews. Keith