This patch fixes stdout/stderr output that printed twice for CLI commands:
was:
(gdb) target create ~/p/hello Current executable set to '~/p/hello' (x86_64). Current executable set to '~/p/hello' (x86_64). ^done (gdb)
now:
(gdb) target create ~/p/hello Current executable set to '~/p/hello' (x86_64). ^done (gdb)