binutils-gdb/gdb/mi
Jan Vrany 2450ad54ce gdb/mi: Remove extra \n from tsv and and traceframe notifications
An extra \n in calls to fprintf_unfiltered() caused invalid MI records
to be emitted:

   > gdb -i mi3 -ex "target remote :7000"
   =thread-group-added,id="i1"
   ~"GNU gdb (GDB) 11.0.50.20201019-git\n"
   ~"Copyright (C) 2020 Free Software Foundation, Inc.\n"
   ...
   ~"Remote debugging using :7001\n"
   =tsv-created,name="trace_timestamp",initial="0"\n
   =thread-group-started,id="i1",pid="304973"

This commit fixes the problem.

gdb/ChangeLog:

        * gdb/mi/mi-interp.c (mi_traceframe_changed): Remove trailing \n from output.
        (mi_tsv_created): Likewise.
        (mi_tsv_deleted): Likewise.
2021-02-25 16:22:13 +00:00
..
ChangeLog-1999-2003
mi-cmd-break.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
mi-cmd-break.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
mi-cmd-catch.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
mi-cmd-disas.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
mi-cmd-env.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
mi-cmd-file.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
mi-cmd-info.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
mi-cmd-stack.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
mi-cmd-target.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
mi-cmd-var.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
mi-cmds.c gdb: make some variables static 2021-01-20 20:55:05 -05:00
mi-cmds.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
mi-common.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
mi-common.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
mi-console.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
mi-console.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
mi-getopt.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
mi-getopt.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
mi-interp.c gdb/mi: Remove extra \n from tsv and and traceframe notifications 2021-02-25 16:22:13 +00:00
mi-interp.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
mi-main.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
mi-main.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
mi-out.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
mi-out.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
mi-parse.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
mi-parse.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
mi-symbol-cmds.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00