[gnome-builder/wip/gtk4-port] plugins/valgrind: follow children when necessary
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/gtk4-port] plugins/valgrind: follow children when necessary
- Date: Thu, 23 Jun 2022 07:16:44 +0000 (UTC)
commit b57e5ae11b7674b585de389d6a62061eac4fce63
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]