Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@false.org>
To: Nick Roberts <nickrob@snap.net.nz>
Cc: gdb-patches@sources.redhat.com
Subject: Re: [PATCH] -stack-select-frame
Date: Fri, 17 Jun 2005 03:21:00 -0000	[thread overview]
Message-ID: <20050617032149.GF17013@nevyn.them.org> (raw)
In-Reply-To: <17074.16093.924351.774111@farnswood.snap.net.nz>

On Fri, Jun 17, 2005 at 03:09:17PM +1200, Nick Roberts wrote:
>  > We've already got -stack-info-frame.  If you want to avoid
>  > -stack-list-frames, is it unreasonable to do the two round trips for
>  > -stack-select-frame / -stack-info-frame?  From Jason's measurements, it
>  > sounds like that isn't a problem.
> 
> -stack-info-frame hasn't been implemented yet (I've think we've been here
> before) but it would probably be quite easy to implement and I guess it
> could work like I've made -stack-select-frame without an argument work.

*snicker* that's what I get for reading the manual.  I assumed it was
implemented.

Maybe it is time to mark the unimplemented commands in the manual?

> However, the documentation suggests that it should work like "info frame",
> so perhaps its expected to have more information.

GDB Command
...........

The corresponding GDB command is `info frame' or `frame' (without
arguments).

I think we've got some leeway here.  I'd rather not expose the rest of
"info frame" to frontends without a demonstrated need.

>  > Not that it would be a terrible change to print out the frame.  It's
>  > just a question of whether there's benefit.  It'll make
>  > -stack-select-frame (again, only marginally) slower.
> 
> How about installing your second choice, just printing the frame when there is
> no argument?  I presume that when Apple use -stack-select-frame, it is always
> with an argument (doco will change to match):

If you're OK with only a literal "-stack-select-frame" providing the
frame information, how about implementing -stack-info-frame instead? 
The documentation for -stack-select-frame does not suggest the argument
is optional; we could make it mandatory.  It just seems cleaner to me
to have select be write-only and info be read-only.

> More generally I think it would be a good idea to mention in the manual
> that MI is still undergoing change to reduce the obligation to maintain
> legacy code.

I'm not real thrilled with doing this; we don't get to decide what
people do or do not use, so documenting things that people do use as
unstable does no one any favors.  However, I've been hearing a lot of
convincing points that we have more freedom here than I thought.  So
I'm getting more comfortable with changes.

-- 
Daniel Jacobowitz
CodeSourcery, LLC


  reply	other threads:[~2005-06-17  3:21 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-16  3:36 Nick Roberts
2005-06-16  4:42 ` Daniel Jacobowitz
2005-06-16  6:41   ` Nick Roberts
2005-06-16 13:21     ` Daniel Jacobowitz
2005-06-16 22:58       ` Nick Roberts
2005-06-16 23:20         ` Bob Rossi
2005-06-16 23:47         ` Daniel Jacobowitz
2005-06-17  3:07           ` Nick Roberts
2005-06-17  3:21             ` Daniel Jacobowitz [this message]
2005-06-17  7:37               ` Nick Roberts
2005-06-17 10:15                 ` Eli Zaretskii
2005-06-17 13:33                   ` Daniel Jacobowitz
2005-06-18  8:56                     ` Eli Zaretskii
2005-06-17  9:55               ` Eli Zaretskii
2005-06-17  9:46             ` Eli Zaretskii
2005-06-16 18:23 ` Eli Zaretskii
2005-06-16 20:15 ` Jason Molenda
2005-06-16 23:04   ` Nick Roberts
2005-06-16 23:30     ` Jason Molenda
2005-06-17  7:22       ` Nick Roberts
2005-06-17 13:30         ` Daniel Jacobowitz
2005-06-17 19:48         ` Jason Molenda
2005-06-17 22:35         ` Stan Shebs
2005-06-17 22:59           ` Daniel Jacobowitz
2005-06-17 23:31           ` Nick Roberts
     [not found] <1119003319.5434.ezmlm@sources.redhat.com>
2005-06-17 17:45 ` Jim Ingham

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=20050617032149.GF17013@nevyn.them.org \
    --to=drow@false.org \
    --cc=gdb-patches@sources.redhat.com \
    --cc=nickrob@snap.net.nz \
    /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