public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
From: Tom de Vries <tdevries@suse.de>
To: Simon Marchi <simark@simark.ca>,
	Simon Marchi <simon.marchi@polymtl.ca>,
	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, 11 Aug 2022 13:56:32 +0200	[thread overview]
Message-ID: <4ba9f6cd-7571-541d-7850-8f8d48d82e7e@suse.de> (raw)
In-Reply-To: <513cd96d-d945-392f-7d72-769c77f9275b@simark.ca>

On 8/10/22 21:38, Simon Marchi via Gdb-patches wrote:
> 
> 
> On 2022-05-26 14:21, Simon Marchi via Gdb-patches wrote:
>>
>>
>> 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
> 
> I pushed this.
> 

Hi,

I'm seeing:
...
FAIL: gdb.mi/mi-break.exp: mi-mode=main: test_breakpoint_commands: 
breakpoint commands: check that commands are set (unexpected output)
FAIL: gdb.mi/mi-break.exp: mi-mode=separate: test_breakpoint_commands: 
breakpoint commands: check that commands are set (unexpected output)
...
which looks like due to getting:
...
script=["print 10","continue"]
...
while expecting:
...
script=\{"print 10","continue"\}
...

Thanks,
- Tom

      reply	other threads:[~2022-08-11 11:56 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
2022-08-10 19:38     ` Simon Marchi
2022-08-11 11:56       ` Tom de Vries [this message]

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=4ba9f6cd-7571-541d-7850-8f8d48d82e7e@suse.de \
    --to=tdevries@suse.de \
    --cc=gdb-patches@sourceware.org \
    --cc=simark@simark.ca \
    --cc=simon.marchi@polymtl.ca \
    --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).