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



commit 8a254dbe37de35da8562c5448c447be3102343f4
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 1cf96e39c..0d5278411 100644
--- a/src/plugins/gdb/gbp-gdb-debugger.c
+++ b/src/plugins/gdb/gbp-gdb-debugger.c
@@ -2411,7 +2411,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]