public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
From: Simon Marchi <simon.marchi@polymtl.ca>
To: Tom Tromey <tom@tromey.com>,
	Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
Subject: Re: [PATCH] gdb/mi: fix breakpoint script field output
Date: Thu, 26 May 2022 14:21:03 -0400	[thread overview]
Message-ID: <b2d23552-3585-e2db-145d-a311b2a71583@polymtl.ca> (raw)
In-Reply-To: <875yls6u6v.fsf@tromey.com>



On 2022-05-26 14:10, Tom Tromey wrote:
>>>>>> "Simon" == Simon Marchi via Gdb-patches <gdb-patches@sourceware.org> writes:
> 
> Simon> The "script" field, output whenever information about a breakpoint with
> Simon> commands is output, uses wrong MI syntax.
> 
> I think this is PR mi/24285.

Thanks, will add the footer.

> 
> Simon> Fix it, keeping the backwards compatibility by introducing a new MI
> Simon> version (MI4), in exactly the same way as was done when fixing
> Simon> multi-locations breakpoint output in [2].
> 
> Simon>  - Add a fix_breakpoint_script_output uiout flag.  MI uiouts will use
> Simon>    this flag if the version is >= 4.
> 
> I was under the impression that MI version 3 was somehow experimental,
> so we didn't need version 4 yet.  But maybe the idea is to roll out new
> MI versions with some regularity and just update the version whenever we
> think we've made a breaking change?

MI3 is the default today, so not experimental.  I think it's fine to
bump the version and ship it as soon as we make a fix that is also a
breaking change.  There's no reason to hold back fixes.  Users (well,
frontends) are supposed to use the interpreter name with the version in
it (mi2, mi3) rather than just "mi", so they don't get bad surprises
when a new MI version is released.  And then they can migrate at their
convenience.

Simon

  reply	other threads:[~2022-05-26 18:21 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-04 12:13 Simon Marchi
2022-05-26 18:10 ` Tom Tromey
2022-05-26 18:21   ` Simon Marchi [this message]
2022-08-10 19:38     ` Simon Marchi
2022-08-11 11:56       ` Tom de Vries

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=b2d23552-3585-e2db-145d-a311b2a71583@polymtl.ca \
    --to=simon.marchi@polymtl.ca \
    --cc=gdb-patches@sourceware.org \
    --cc=tom@tromey.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).