Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Vladimir Prus <ghost@cs.msu.su>
To: gdb-patches@sources.redhat.com
Subject: Re: [BUG:MI] -break-list doesn't list multiple breakpoints
Date: Fri, 11 Jan 2008 17:36:00 -0000	[thread overview]
Message-ID: <fm89cs$1lb$1@ger.gmane.org> (raw)
In-Reply-To: <18310.38708.144719.374963@kahikatea.snap.net.nz>

Nick Roberts wrote:

> 
> I have previously mentioned this in
> 
>        http://sourceware.org/ml/gdb-patches/2007-11/msg00276.html
> 
> breakpoint.c currently has:

Yes, we had this conversation before...
 
>       if (b->loc
> && (b->loc->next || !b->loc->enabled))
> && !ui_out_is_mi_like_p (uiout))
> {
> struct bp_location *loc;
> int n = 1;
> for (loc = b->loc; loc; loc = loc->next, ++n)
> print_one_breakpoint_location (b, loc, n, last_addr);
> }
> 
> where presumably the !ui_out_is_mi_like_p (uiout) bit is there because the
> testsuite failed without it, i.e., so that -break-insert only reports one
> breakpoint (the CLI command "break" doesn't use
> print_one_breakpoint_location).

No, merely because I had no time to design MI interface.

> On a more general note, in Emacs, I just just use "info break" after every
> user
> command and will probably just use "-break-list" in the future.  I won't
> use the output of -break-insert, although some front end might be clever
> enough to do this and that presumably was the intention when the command
> was written. In that case it might be necessary to include all the
> locations in a multiple breakpoint in the output.
> 
> Support for CLI in frontends can only be dropped after MI is fully
> functional, it makes no sense to to do it before.

I am not sure about your point. Clearly, MI needs some work still,
but it's true for several years already.

- Volodya



  reply	other threads:[~2008-01-11 17:36 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-10 22:08 Nick Roberts
2008-01-11 17:36 ` Vladimir Prus [this message]
2008-01-11 21:34   ` Nick Roberts
2008-01-11 22:55     ` Daniel Jacobowitz
2008-01-11 23:38       ` Nick Roberts
2008-01-15 17:08         ` Vladimir Prus
2008-01-15 21:38           ` Nick Roberts
2008-01-13 21:26       ` Nick Roberts
2008-01-29 19:16         ` Daniel Jacobowitz
2008-01-29 22:53           ` Nick Roberts
2008-01-29 23:31             ` Daniel Jacobowitz
2008-01-30  0:52               ` Nick Roberts
2008-01-30  3:04               ` Nick Roberts
2008-01-30  3:20                 ` Daniel Jacobowitz
2008-01-30  5:59                   ` Vladimir Prus
2008-01-30  7:14                     ` Nick Roberts
2008-01-30  7:32                       ` Vladimir Prus
2008-01-30  7:50                         ` Nick Roberts
2008-01-30  7:58                           ` Vladimir Prus
2008-02-01 20:15                   ` 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='fm89cs$1lb$1@ger.gmane.org' \
    --to=ghost@cs.msu.su \
    --cc=gdb-patches@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