From 4caf4dc39b479beaf30de27859b40de035ba1315 Mon Sep 17 00:00:00 2001 From: Gabriele Musco Date: Tue, 9 Jan 2024 19:38:12 +0000 Subject: [PATCH] feat: run with gdb starts gdbserver --- src/ui/job_worker/internal_worker.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ui/job_worker/internal_worker.rs b/src/ui/job_worker/internal_worker.rs index a29b656..a04e533 100644 --- a/src/ui/job_worker/internal_worker.rs +++ b/src/ui/job_worker/internal_worker.rs @@ -174,11 +174,11 @@ impl InternalJobWorker { let mut launch_opts = prof.xrservice_launch_options.trim(); let debug_launch_opts = if debug { if launch_opts.contains(LAUNCH_OPTS_CMD_PLACEHOLDER) { - format!("{} {}", "gdb -batch -ex run -ex bt --args", launch_opts) + format!("{} {}", "gdbserver localhost:9000", launch_opts) } else { format!( "{} {} {}", - "gdb -batch -ex run -ex bt --args", LAUNCH_OPTS_CMD_PLACEHOLDER, launch_opts + "gdbserver localhost:9000", LAUNCH_OPTS_CMD_PLACEHOLDER, launch_opts ) } } else {