From: Yu Watanabe Date: Thu, 17 Jul 2025 16:29:59 +0000 (+0900) Subject: analyze-unit-gdb: append debugger arguments X-Git-Tag: v258-rc1~36^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1b25aa7f6e26ad30e7e6c595fc9490b5d131c412;p=thirdparty%2Fsystemd.git analyze-unit-gdb: append debugger arguments Previously, the --debugger-arguments= was ignored. Follow-up for ad6e02e7b42db35178305614e643be7a62568d87. --- diff --git a/src/analyze/analyze-unit-gdb.c b/src/analyze/analyze-unit-gdb.c index 06b5fa74530..7c5da0b948d 100644 --- a/src/analyze/analyze-unit-gdb.c +++ b/src/analyze/analyze-unit-gdb.c @@ -103,6 +103,10 @@ int verb_unit_gdb(int argc, char *argv[], void *userdata) { } else assert_not_reached(); + r = strv_extend_strv(&debugger_call, arg_debugger_args, /* filter_duplicates = */ false); + if (r < 0) + return log_oom(); + /* Don't interfere with debugger and its handling of SIGINT. */ (void) ignore_signals(SIGINT); (void) sigaction(SIGTERM, &sa, NULL);