aboutsummaryrefslogtreecommitdiff
path: root/gdb/infcmd.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2023-04-14 13:18:05 -0600
committerTom Tromey <tromey@adacore.com>2023-05-01 11:10:25 -0600
commit7d3b43a15bd4267b5782ca40c0bb1dec1fa3f476 (patch)
treee94035503264118fb287dc67f3afa7af55208ccc /gdb/infcmd.c
parentba71385e7f8824849f5a1f3d77bd5f03928138eb (diff)
downloadgdb-7d3b43a15bd4267b5782ca40c0bb1dec1fa3f476.zip
gdb-7d3b43a15bd4267b5782ca40c0bb1dec1fa3f476.tar.gz
gdb-7d3b43a15bd4267b5782ca40c0bb1dec1fa3f476.tar.bz2
Turn set_inferior_args_vector into method of inferior
This patch turns set_inferior_args_vector into an overload of inferior::set_args. Regression tested on x86-64 Fedora 36.
Diffstat (limited to 'gdb/infcmd.c')
-rw-r--r--gdb/infcmd.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/gdb/infcmd.c b/gdb/infcmd.c
index 1ed7ced..dd3675e 100644
--- a/gdb/infcmd.c
+++ b/gdb/infcmd.c
@@ -120,14 +120,6 @@ show_inferior_tty_command (struct ui_file *file, int from_tty,
"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