[PATCH] gdb/mi: fix breakpoint script field output

Tom Tromey tom@tromey.com
Thu May 26 18:10:48 GMT 2022


>>>>> "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.

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?

Tom


More information about the Gdb-patches mailing list