From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id Dx56Cif3DWmLdykAWB0awg (envelope-from ) for ; Fri, 07 Nov 2025 08:41:59 -0500 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=DKp3MdYJ; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 1D4701E057; Fri, 07 Nov 2025 08:41: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=-3.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,RCVD_IN_VALIDITY_CERTIFIED_BLOCKED, RCVD_IN_VALIDITY_RPBL_BLOCKED,RCVD_IN_VALIDITY_SAFE_BLOCKED autolearn=ham autolearn_force=no version=4.0.1 Received: from server2.sourceware.org (server2.sourceware.org [8.43.85.97]) (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 93F961E057 for ; Fri, 07 Nov 2025 08:41:58 -0500 (EST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 182FB3858D20 for ; Fri, 7 Nov 2025 13:41:58 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 182FB3858D20 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=DKp3MdYJ Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTP id EFC723858D1E for ; Fri, 7 Nov 2025 13:41:24 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org EFC723858D1E 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 EFC723858D1E Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.133.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1762522885; cv=none; b=hwchTj9sMKzXQsgBcdyxowSL5GZwRCiv+qo1h1rDEF/PPQc1gRH0E4k4VDpSfdeMjUX/iLDhh41eIPQi4c4my2V7Ebxgn/8oCCC7OTw0wATtUeBVUlUL7Uf7tBSVIYX6pAl4QtKo3TQCFiv/vofqM6XLuCGIVKfesd9cmRRWAtk= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1762522885; c=relaxed/simple; bh=oKvxB3g6tPrlPVHGaekJKdb0NombUMnN+OdPkmG4muA=; h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:From; b=aKlYdFQXNrnSpfqfHQR3KSar9gRYCZDBJ/bzA9gpcewQlGEzP66s/qHXVbNXzFt413+ovWEEaCA4o0M5YNR/O+rb3iN+ytX2Eax3jmb6AI+5z1xvCtCtjRJTKH2T2JnrWqfvac1DLoiM7ZCu79leFbIErCBGWa0TGgYUsJueFhY= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EFC723858D1E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1762522884; 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=wFpHOd/4SVLZYby0HW8HfEtvSmJll/7MyIGmpgkQk58=; b=DKp3MdYJ8HkeQ0OyC4QIAjcvxOJtrt38JJTN5VO/Kqi0b5QuS1t8+SOBMkeuOKMcE/BioE HIaDn1j4pejqKZMm0VQmgAWTxHeBfhUsf8Au6QrP/IRhbwtv8s06bpAGT1CGg535bDpEJl NK7wcRmeFiLDqJDkfMnm8PwI4ZbdW1A= Received: from mail-qk1-f198.google.com (mail-qk1-f198.google.com [209.85.222.198]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-590-nbog_wzFNw64KuoX7mldBg-1; Fri, 07 Nov 2025 08:41:23 -0500 X-MC-Unique: nbog_wzFNw64KuoX7mldBg-1 X-Mimecast-MFC-AGG-ID: nbog_wzFNw64KuoX7mldBg_1762522883 Received: by mail-qk1-f198.google.com with SMTP id af79cd13be357-8b228c484d8so207369285a.0 for ; Fri, 07 Nov 2025 05:41:23 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1762522882; x=1763127682; h=content-transfer-encoding:in-reply-to:content-language:from :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=wFpHOd/4SVLZYby0HW8HfEtvSmJll/7MyIGmpgkQk58=; b=ho3Zv0bGemWNaz+CP/e0BCx37m1MwpPUsp0CBcXZk5ws3AjEhSIKPT/H9NVIB4357x WO60MiHeOhKnytEyFNVE05aMdF/Zi+tOaftTNLfFZY7nSCBJikiQvJXCxxLDDBCcYISQ MUZ0773cFDENrKtvgEQvUAJT8Wgwe5YjSA4Zs7757ISLI1PbA/bwbUvYqeL8fApxUwpq RLvFqrxonNcDpGgnTEgTmCm32oUZznBccSK/kQlwFiixrEzsG8v7qTszMEkttaq/OQH5 K6j826mFHyy8jGL9zqPzpG0HYv8NVHtyATPprMiWkiJEWvqoqk4id8YtO88L6FvuMFjS IOLw== X-Gm-Message-State: AOJu0Yy4LkQiMJMjDwHkf9Zz+ncMMDBmVd2yXj5+1Bq2rXZxEzbN7K68 G7eaieZ5maofrABQuSLuumM1JGbnll5hHw+lJkAotJyOc1DN1jZ7YCpZc2Zl/DP/27ej/q2qw4F C+Gl7XClIGrHWcpDpHgSOlHiOWwn9i/wTpIH55KEEzq1lAF3JLtV7bmuBRrvZUBqvffEHb2g= X-Gm-Gg: ASbGncsecMmFQeenTceNibVSVDiU8BR1DxthfbW2JUrxUOFycSDRoT+prWIPc/QdgIO qbvTy0xTz7WGOvLceBFZJZ3dMctTUVk4fwdSe2e+8hq7L4VNgPLNLslKiEMateNqKcR3Wsv8ceT A+eCytIBc18Ip3GFF4fv3RNtkUEVPvmtiqvJIXetGI2zlI+7BI4yuVxoDFN3vip3xSRxrFjQ3Gs 1zpIo2Pfphk2aDHfsTJUftKMVp1SCC1m4QLIgLhzOWcz6h5Y3JYI/BRjSoE6KrfjsL7tTNWqBjk Vdy2asjPk7JwrAQ9YHEcN46t83ljejxCU4aQH2ami6YB9GzFNUelNCeRnoy37Y0gK2KHNBQOd5h ZtLjH6d/3RTU= X-Received: by 2002:a05:620a:1792:b0:892:ce2b:f858 with SMTP id af79cd13be357-8b245281186mr372117785a.9.1762522882536; Fri, 07 Nov 2025 05:41:22 -0800 (PST) X-Google-Smtp-Source: AGHT+IGfG6gKBCJ8auvjjg3izfp2L/KHsQGqHkx9lnpzfC3S4Sg3nIGvL7ex7gmtAoLcWhfXKQiJdg== X-Received: by 2002:a05:620a:1792:b0:892:ce2b:f858 with SMTP id af79cd13be357-8b245281186mr372115485a.9.1762522882159; Fri, 07 Nov 2025 05:41:22 -0800 (PST) Received: from ?IPV6:2804:14d:8084:9a69::1000? ([2804:14d:8084:9a69::1000]) by smtp.gmail.com with ESMTPSA id af79cd13be357-8b2355e6ee0sm410300285a.16.2025.11.07.05.41.20 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 07 Nov 2025 05:41:21 -0800 (PST) Message-ID: <9c11ee0a-d4f6-4628-8aaf-e2e317e871bb@redhat.com> Date: Fri, 7 Nov 2025 10:41:18 -0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 1/2] gdb: introduce command "info architecture" To: Eli Zaretskii Cc: gdb-patches@sourceware.org References: <20251106194514.1857177-1-guinevere@redhat.com> <20251106194514.1857177-2-guinevere@redhat.com> <865xbmb7z2.fsf@gnu.org> From: Guinevere Larsen In-Reply-To: <865xbmb7z2.fsf@gnu.org> X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: ShFzyi4nfW2Z5qfaukqFIy1eFQ1JSsz2XeNz2l6U_L8_1762522883 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 11/7/25 4:46 AM, Eli Zaretskii wrote: >> From: Guinevere Larsen >> Cc: Guinevere Larsen >> Date: Thu, 6 Nov 2025 16:45:13 -0300 >> >> There is no convenient way to tell a user how to check which >> architectures are supported by their build of GDB. This hasn't really >> been a problem, but now that GDB isn't ported to Apple's new CPU >> architectures, a user could run into a situation where they're trying to >> debug an unsupported CPU. >> >> This commit adds a way to list supported architectures, and filter them >> using a regular expression. No test is added because I couldn't think >> of a good way to verify functionality when we can't control the >> configure line. >> --- >> gdb/NEWS | 4 ++++ >> gdb/arch-utils.c | 28 ++++++++++++++++++++++++++++ >> gdb/doc/gdb.texinfo | 5 +++++ >> 3 files changed, 37 insertions(+) > Thanks. The documentation parts are okay (with one nit, see below), > but I'm struggling to understand what you mean by "CPU > microarchitectures". And without examples, I cannot even guess. > Would it be possible to expand on that in the manual, or at least > provide a could of examples of what the output will look like? A CPU architecture is something like "arm" or "x86". The microarchitecture is changes within that architecture, like "armv3", "armv4", "armv3m" and so on. I'm not sure how to expand on this in the manual, and considering this is how "set architecture" works, I just thought it would be good to be more specific, but I can just call it "architecture" instead, if you think it is better. > >> +@item info architectures >> +@item info architectures @var{regexp} >> +List architectures supported by GDB. If @var{regexp} is provided, filter Fixed > ^^ > Two spaces there. > > Reviewed-By: Eli Zaretskii > -- Cheers, Guinevere Larsen It/she