[gnome-builder/gnome-builder-3-30] gdb: silence stderr to avoid cross-communication



commit 5524b292a7cd1dff6021ee6202007a38bde44a38
Author: Christian Hergert <chergert redhat com>
Date:   Thu Sep 27 17:46:17 2018 -0700

    gdb: silence stderr to avoid cross-communication

 src/plugins/gdb/gbp-gdb-debugger.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/plugins/gdb/gbp-gdb-debugger.c b/src/plugins/gdb/gbp-gdb-debugger.c
index 78d2bfe40..8b1eb0764 100644
--- a/src/plugins/gdb/gbp-gdb-debugger.c
+++ b/src/plugins/gdb/gbp-gdb-debugger.c
@@ -2428,7 +2428,7 @@ gbp_gdb_debugger_prepare (IdeDebugger *debugger,
     self->mapped_fd = ide_runner_take_fd (runner, tty_fd, -1);
 
   /* We need access to stdin/stdout for communicating with gdb */
-  ide_runner_set_flags (runner, G_SUBPROCESS_FLAGS_STDIN_PIPE | G_SUBPROCESS_FLAGS_STDOUT_PIPE);
+  ide_runner_set_flags (runner, G_SUBPROCESS_FLAGS_STDIN_PIPE | G_SUBPROCESS_FLAGS_STDOUT_PIPE | 
G_SUBPROCESS_FLAGS_STDERR_SILENCE);
 
   IDE_EXIT;
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]