[gnome-builder/wip/gtk4-port: 1620/1774] plugins/valgrind: follow children when necessary




commit a9440829849987b7afef7a0bb57f9b383a38d805
Author: Christian Hergert <chergert redhat com>
Date:   Thu Jun 23 00:16:37 2022 -0700

    plugins/valgrind: follow children when necessary

 src/plugins/valgrind/gbp-valgrind-workbench-addin.c | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/src/plugins/valgrind/gbp-valgrind-workbench-addin.c 
b/src/plugins/valgrind/gbp-valgrind-workbench-addin.c
index e8c7c3e27..4c8cad49c 100644
--- a/src/plugins/valgrind/gbp-valgrind-workbench-addin.c
+++ b/src/plugins/valgrind/gbp-valgrind-workbench-addin.c
@@ -191,6 +191,10 @@ gbp_valgrind_workbench_addin_run_handler_cb (IdeRunContext       *run_context,
 
   if (env[0] != NULL)
     {
+      /* If we have to exec "env" to pass environment variables, then we
+       * must follow children to get to our target executable.
+       */
+      ide_run_context_append_argv (run_context, "--trace-children=yes");
       ide_run_context_append_argv (run_context, "env");
       ide_run_context_append_args (run_context, env);
     }


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