"is \"%s\".\n"), inferior_tty.c_str ());
}
-void
-set_inferior_args_vector (int argc, char **argv)
-{
- gdb::array_view<char * const> args (argv, argc);
- std::string n = construct_inferior_arguments (args);
- current_inferior ()->set_args (std::move (n));
-}
-
/* Store the new value passed to 'set args'. */
static void
return m_terminal;
}
+/* See inferior.h. */
+
+void
+inferior::set_args (gdb::array_view<char * const> args)
+{
+ set_args (construct_inferior_arguments (args));
+}
+
void
inferior::add_continuation (std::function<void ()> &&cont)
{
extern void attach_command (const char *, int);
-extern void set_inferior_args_vector (int, char **);
-
extern void registers_info (const char *, int);
extern void continue_1 (int all_threads);
m_args = std::move (args);
};
+ /* Set the argument string from some strings. */
+ void set_args (gdb::array_view<char * const> args);
+
/* Get the argument string to use when running this inferior.
No arguments is represented by an empty string. */
symarg = argv[optind];
execarg = argv[optind];
++optind;
- set_inferior_args_vector (argc - optind, &argv[optind]);
+ current_inferior ()->set_args
+ (gdb::array_view<char * const> (&argv[optind], argc - optind));
}
else
{