Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Stan Shebs <stanshebs@earthlink.net>
To: Eli Zaretskii <eliz@gnu.org>
Cc: gdb-patches@sourceware.org
Subject: Re: 'info os' additions again
Date: Wed, 09 May 2012 21:17:00 -0000	[thread overview]
Message-ID: <4FAADEBE.7010908@earthlink.net> (raw)
In-Reply-To: <83k40m0xqt.fsf@gnu.org>

On 5/8/12 9:44 PM, Eli Zaretskii wrote:
>> Date: Tue, 08 May 2012 15:49:30 -0700
>> From: Stan Shebs<stanshebs@earthlink.net>
>>
>> I tend to favor "info os<type>  <subtype>..." because it fits the
>> progressive refinement that is a hallmark of GDB commands - the user can
>> remember it as "info, and it's OS-related, but I just want semaphores".
>> The user doesn't have to consider what OS name might be expected, "os"
>> always works to connect to the class of OS-specific info displays.
>>
>> However, we also have an alternate tradition of "info<target>
>> <type>...", including "info dos", "info w32", "info spu", etc.  By that
>> tradition, Linux-specific info should be "info linux", and if there were
>> BSD OS info, it would be "info bsd", and so forth.  It's simpler to
>> document, because the manual can just have a section for each subcommand
>> that enumerates the subsubcommands that are available.  Unfortunately
>> for consistency, we've also had "info os" for several years.
> My personal take of this is that (since quite naturally, most of the
> new features introduced into GDB are Linux-specific), "info os" will
> rapidly become a hodgepodge of Linux-specific commands, with only a
> few supported on other platforms.  At that point, "info os" will
> simply be a grossly misleading name, confusing to users of other
> platforms and hard to describe clearly in the documentation.

I suppose that's possible, although when originally scoping this 
particular addition, I looked over the list of OS objects and included 
everything that seemed of interest to user-space programs.  There are 
many kind of additional objects available via /proc, but they are 
control and systemwide maintenance things that have very little to do 
with debugging an app, and I'm not seeing that anyone could make a 
compelling argument that in-GDB access would be of value.

>
> FWIW, I never understood the reason why others prefer "info os".

I'm sure a lot of it comes from the same-but-differentness of the Unix 
family.  I myself have my right hand on a Macbook and left hand on a 
Dell running Linux, and so if I'm sticking to Posix API, I want GDB to 
work the same on the two.

Stan





  reply	other threads:[~2012-05-09 21:17 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-08 22:49 Stan Shebs
2012-05-08 23:55 ` Joel Brobecker
2012-05-09  4:46 ` Eli Zaretskii
2012-05-09 21:17   ` Stan Shebs [this message]
2012-05-10  5:21     ` Eli Zaretskii
2012-05-10 12:22       ` Pedro Alves
2012-05-10 18:13         ` Stan Shebs
2012-05-10 18:18           ` Pedro Alves
2012-05-10 18:42             ` Stan Shebs
2012-05-10 18:59               ` Pedro Alves
2012-05-10 21:07                 ` Stan Shebs
2012-05-11 18:30                   ` Pedro Alves
2012-05-12  1:33                     ` Matt Rice
2012-05-14 14:52                       ` Joel Brobecker
2012-05-11 20:25           ` Marc Khouzam

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=4FAADEBE.7010908@earthlink.net \
    --to=stanshebs@earthlink.net \
    --cc=eliz@gnu.org \
    --cc=gdb-patches@sourceware.org \
    /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