On 19/10/2026 21.26, Alex Bennée wrote:
Passing a plain string to subprocess involves making sure the escaping
is correct so the underlying shell doesn't get confused. This can be
tricky to track across multiple  processes. To simplify this build the
command as an array and execute gdb directly without involving the
shell.

We add a mini-helper to make the log output a bit more copy and paste
friendly.

Suggested-by: Ilya Leoshkevich <[email protected]>
Signed-off-by: Alex Bennée <[email protected]>
---
  tests/guest-debug/run-test.py | 26 +++++++++++++++-----------
  1 file changed, 15 insertions(+), 11 deletions(-)
Reviewed-by: Thomas Huth <[email protected]>


Reply via email to