]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
analyze-unit-gdb: append debugger arguments
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 17 Jul 2025 16:29:59 +0000 (01:29 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 17 Jul 2025 16:39:51 +0000 (01:39 +0900)
Previously, the --debugger-arguments= was ignored.

Follow-up for ad6e02e7b42db35178305614e643be7a62568d87.

src/analyze/analyze-unit-gdb.c

index 06b5fa74530abab4b7c067c6f91a188681f6d62e..7c5da0b948db6b20889b1e37aa17af018edfbc97 100644 (file)
@@ -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);