Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Guinevere Larsen <guinevere@redhat.com>
To: "Maciej W. Rozycki" <macro@orcam.me.uk>
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH 1/2] gdb: introduce command "info architecture"
Date: Thu, 27 Nov 2025 17:09:12 -0300	[thread overview]
Message-ID: <676535c1-9276-4ee0-87e8-fc9b0d7a78bb@redhat.com> (raw)
In-Reply-To: <alpine.DEB.2.21.2511271954290.36486@angie.orcam.me.uk>

On 11/27/25 5:00 PM, Maciej W. Rozycki wrote:
> On Thu, 27 Nov 2025, Guinevere Larsen wrote:
>
>>>    We could reword output from `set architecture' so as not to suggest the
>>> use without an argument is invalid.
>>>
>>>    In any case the listing facility must not be an `info' subcommand, as
>>> these are meant for showing the state of the debuggee,
>> I disagree, in my opinion, this new command would function basically just like
>> "info unwinder", giving information on how GDB is able to interact with the
>> inferior.
>   Is it the semantics documented in the manual since forever (search for it
> and when it appeared there) that you disagree with?  I don't know what
> `info unwinder' is about, but maybe someone got it wrong too and it should
> be a `show' subcommand instead.

I know that this is what the manual and the help text say about "info", 
but that's not how the command has been used since at least the 1999 commit:

commit c906108c21474dfb4ed285bcc0ac6fe02cd400cc (tag: gdb-4_18-branchpoint)
Author: Stan Shebs <shebs@codesourcery.com>
Date:   Fri Apr 16 01:35:26 1999 +0000

     Initial creation of sourceware repository

in which the commands "info copying" and "info warranty" were added. The 
show version of these commands were only added in 2011.

>>>    while the set of
>>> architectures supported is a property of the given instance of GDB itself,
>>> and therefore suitable for the `set'/`show' commands.  So if a new command
>>> it would have to be `show architecture list' or suchlike.
>> My understanding is that set/show commands are mostly used for when the user
>> could change something, and the point of this command is showing the user the
>> compilation options that were used, there's no changes that a user could do.
>   Same as with:
>
> (gdb) show version
>
> -- it can't be changed by the user and there's no corresponding `set'
> command.
>
>    Maciej
>

-- 
Cheers,
Guinevere Larsen
It/she


  reply	other threads:[~2025-11-27 20:09 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-11-06 19:45 [PATCH 0/2] Add warning if the native target is not supported Guinevere Larsen
2025-11-06 19:45 ` [PATCH 1/2] gdb: introduce command "info architecture" Guinevere Larsen
2025-11-06 23:24   ` Maciej W. Rozycki
2025-11-07 13:10     ` Guinevere Larsen
2025-11-07 15:51       ` Maciej W. Rozycki
2025-11-07 16:05         ` Hannes Domani
2025-11-08  2:02           ` Maciej W. Rozycki
2025-11-27 19:51         ` Guinevere Larsen
2025-11-27 20:00           ` Maciej W. Rozycki
2025-11-27 20:09             ` Guinevere Larsen [this message]
2025-11-28  9:20               ` Maciej W. Rozycki
2025-12-01 16:49                 ` Guinevere Larsen
2025-11-07  7:46   ` Eli Zaretskii
2025-11-07 13:41     ` Guinevere Larsen
2025-11-07 14:23       ` Eli Zaretskii
2025-11-08  2:25       ` Maciej W. Rozycki
2025-11-27 20:01         ` Guinevere Larsen
2025-11-28  9:20           ` Maciej W. Rozycki
2025-11-06 19:45 ` [PATCH 2/2] gdb: add warning when no native target is available Guinevere Larsen
2025-11-07  7:48   ` Eli Zaretskii
2025-11-07 13:24     ` Guinevere Larsen
2025-11-07 14:21       ` Eli Zaretskii
2025-11-27 20:15         ` Guinevere Larsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=676535c1-9276-4ee0-87e8-fc9b0d7a78bb@redhat.com \
    --to=guinevere@redhat.com \
    --cc=gdb-patches@sourceware.org \
    --cc=macro@orcam.me.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox