Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Nick Roberts <nickrob@snap.net.nz>
To: Vladimir Prus <ghost@cs.msu.su>
Cc: gdb@sources.redhat.com
Subject: Re: bug in mi when setting breakpoint
Date: Sun, 16 Dec 2007 22:00:00 -0000	[thread overview]
Message-ID: <18277.40933.42208.470774@kahikatea.snap.net.nz> (raw)
In-Reply-To: <fk44q2$rud$1@ger.gmane.org>

 > > Unfortunately CLI also uses sub-prompts for several other commands:
 > > queries e.g pending breakpoints, exiting after exevution has started; the
 > > "commands" command.  I don't think that they fit well with the MI
 > > paradigm: MI expects MI output.  With queries, GDB takes affirmative
 > > action, e.g., creates pending breakpoints regardless of the value of "show
 > > breakpoint pending"
 > 
 > I don't think that's true. Week old CVS HEAD won't ever create pending
 > breakpoint when using MI. Today's CVS HEAD will create pending breakpoint
 > if you use the -f option to -break-insert. Without that option, pending
 > breakpoint won't ever be created.

It is true with CLI commands in MI:

(gdb) 
-interpreter-exec console "break fgfg"
&"Function \"fgfg\" not defined.\n"
~"Breakpoint 1 (fgfg) pending.\n"
^done
(gdb) 

 > > and exits regardless of the value of "show confirm".
 > > 
 > > Perhaps, for now, GDB could do something similar, i.e., set all the
 > > breakpoints in the breakpoint menu.
 > 
 > In general, I think that any command that requires any interactivity
 > should explicitly document how it would handle that.

We don't appear to have any provision for such commands in MI and ISTR that Jim
Ingham has described difficulties with MI.  In, particular they have
-break-commands to deal with the "commands" command.  I was just proposing a
possible immediate fix, not to solve the general problem.

-- 
Nick                                           http://www.inet.net.nz/~nickrob


  reply	other threads:[~2007-12-16 22:00 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-16 12:56 Dodji Seketeli
2007-12-16 20:42 ` Nick Roberts
2007-12-16 21:21   ` Vladimir Prus
2007-12-16 22:00     ` Nick Roberts [this message]
2007-12-17  9:30   ` Dodji Seketeli
2007-12-17 11:04     ` Nick Roberts
2007-12-17 11:43       ` Dodji Seketeli
2008-01-15  3:37   ` 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=18277.40933.42208.470774@kahikatea.snap.net.nz \
    --to=nickrob@snap.net.nz \
    --cc=gdb@sources.redhat.com \
    --cc=ghost@cs.msu.su \
    /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