]> git.ipfire.org Git - thirdparty/valgrind.git/commit
gdb --multi mode stdout redirecting to stderr
authorMark Wielaard <mark@klomp.org>
Thu, 17 Aug 2023 13:40:30 +0000 (15:40 +0200)
committerMark Wielaard <mark@klomp.org>
Mon, 21 Aug 2023 12:08:40 +0000 (14:08 +0200)
commitb35a8ed5a9575dbadb7e2a84bd4b6c4ab9eda21a
treeb4dbd65fb1c89cf4847148e7a33aa157e0bfe5d9
parent0c37fa39c104f9c7c5f0b2297e3d52e8b8d58cac
gdb --multi mode stdout redirecting to stderr

When in stdio mode (talking to gdb through stdin/stdout, not
through a socket), redirect stdout to stderr and close stdin
for the inferior. That way at least some output can be seen,
but there will be no input.

This is workaround till we have real terminal handling.

     * coregrind/vgdb.c (main): Pass in_port to do_multi_mode.
     (do_multi_mode): Pass in_port to fork_and_exec_valgrind.
     (fork_and_exec_valgrind): Close stdin, redirect stdout to
     stderr if in_port <= 0.

https://bugs.kde.org/show_bug.cgi?id=471311
NEWS
coregrind/vgdb.c