[Bug mi/9659] -break-list can produce non MI compliant output

bugmenot at mailinator dot com sourceware-bugzilla@sourceware.org
Mon Aug 20 13:39:00 GMT 2018


https://sourceware.org/bugzilla/show_bug.cgi?id=9659

--- Comment #11 from John Doe <bugmenot at mailinator dot com> ---
This is still present in 8.1.1.

Currently, pygdbmi (https://github.com/cs01/pygdbmi) does not support the
broken format (and may cause infinite loop while parsing the output), and it is
linked from GDB Front Ends - GDB Wiki
(https://sourceware.org/gdb/wiki/GDB%20Front%20Ends).

Also, the fix is relatively simple, just change "tuple" to "list".

It should be fixed.

At this version, the code is changed and the patch cannot be directly applied;
but I think the relevant code is at line 6313 of gdb/breakpoint.c
(https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=blob;f=gdb/breakpoint.c;hb=c44deb735ef492f8799cbb35c5f2566fc2dba19d#l6313)
instead.

    ui_out_emit_tuple tuple_emitter (uiout, "script");

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Gdb-prs mailing list