Tests: Add environment variables in tests to attach gdbserver
authorKienan Stewart <kstewart@efficios.com>
Fri, 11 Oct 2024 15:40:34 +0000 (15:40 +0000)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 24 Oct 2024 18:06:21 +0000 (14:06 -0400)
commitc1eb72c624235df8eb0118f1ad7f05eabcd4d3de
treef5bbe1cc01f6d2b9a526d2250c2686591eace7dc
parent7b874e71ef90c4e0e0d5bc9a5ac697ed0ff09da5
Tests: Add environment variables in tests to attach gdbserver

When debugging tests, the current infrastructure in both the python and
bash test harnesses require that the user start the sessiond or relayd
beforehand, and run the tests with environment variables to stop the
spawning of the respective programs.

To facilitate the process, new environment variables are added to allow
gdbserver to be spawned and attach to the relayd or sessiond. The user
may then connect with gdb, for example: `gdb -ex "target
localhost:1001"`.

Change-Id: Id4d1b446c7d6682c011ef27682198fb4a503f5f4
Signed-off-by: kienan Stewart <kstewart@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
tests/utils/lttngtest/environment.py
tests/utils/utils.sh
This page took 0.026296 seconds and 4 git commands to generate.