Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@false.org>
To: gdb@sources.redhat.com
Subject: Re: MI query questions
Date: Tue, 30 May 2006 08:20:00 -0000	[thread overview]
Message-ID: <20060529144640.GA12145@nevyn.them.org> (raw)
In-Reply-To: <20060529122337.GB2021@brasko.net>

On Mon, May 29, 2006 at 08:23:37AM -0400, Bob Rossi wrote:
> The first small issue is that the '[1] all\n' choice is on the same
> line as the [0] choice.

That's because the ~"" blocks come from individual calls to printf.

> The second issue is how GDB outputs a final ">" line. This isn't a valid
> GDB/MI Output record/command. At least, I don't think it is. If I select
> an option, then I get this

> Which looks pretty good to me. So the problem is, the line ">"
> apparently means to get input from the user. This isn't specified in the
> MI OUTPUT record. Should we change the OUTPUT record to represent
> interactive commands?

I don't really think we should shoehorn these queries into MI.  It
would make more sense to me to have it do something MI-like.  For
example, not set any breakpoint, but return a more exact list of places
the breakpoint could be placed.  If you want the query behavior, you
could of course use interpreter-exec :-)

I dunno what that new response would look like, and I'm not especially
interested in working it out; just sharing my opinion.  The > bit is
very un-MI, and e.g. it prevents pipelining MI commands.

-- 
Daniel Jacobowitz
CodeSourcery


  reply	other threads:[~2006-05-29 14:47 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-30  3:48 Bob Rossi
2006-05-30  8:20 ` Daniel Jacobowitz [this message]
2006-05-30 17:15   ` Jim Ingham
2006-05-30 17:41     ` Bob Rossi
2006-05-30 17:53       ` Jim Ingham
2006-05-30 17:55         ` Jim Ingham
2006-05-30 17:55           ` Bob Rossi
2006-05-30 18:12             ` Daniel Jacobowitz
2006-05-30 20:14             ` Jim Ingham
2006-05-30 18:27               ` Bob Rossi
2006-05-30 18:56                 ` Jim Ingham
2006-05-30 20:46                   ` Bob Rossi
2006-05-30 21:11                     ` Jim Ingham
2006-05-30 21:15                       ` Daniel Jacobowitz
2006-05-30 21:30                         ` Jim Ingham
2006-05-31  9:38                           ` Daniel Jacobowitz
2006-05-31 13:27                             ` Bob Rossi
2006-05-30 17:00 ` Nick Roberts
2006-05-30 17:32   ` Bob Rossi
2006-05-31 10:29     ` Nick Roberts
2006-05-31 13:25       ` Bob Rossi
2006-06-01  0:58         ` Nick Roberts

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=20060529144640.GA12145@nevyn.them.org \
    --to=drow@false.org \
    --cc=gdb@sources.redhat.com \
    /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