From: Simon Marchi Date: Tue, 26 Nov 2019 17:12:04 +0000 (-0500) Subject: Remove simulator_command declaration, make static X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d04afd58be9a490ab5ff0ea5ee6020f3d2781002;p=binutils-gdb.git Remove simulator_command declaration, make static The simulator_command function is not used outside its file, so make it static. Remove the declaration, which is not needed and not even in sync with the definition. gdb/ChangeLog: * remote-sim.c (simulator_command): Make static, remove declaration. Change-Id: I40bd1e3662f849c4c9970443931ab9ee0ccccea1 --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index afb0b65c795..ad0f981975c 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2019-11-26 Simon Marchi + + * remote-sim.c (simulator_command): Make static, remove + declaration. + 2019-11-26 Simon Marchi * unittests/array-view-selftests.c (check_ptr_size_ctor2): Make diff --git a/gdb/remote-sim.c b/gdb/remote-sim.c index 67b46909455..1c40c572525 100644 --- a/gdb/remote-sim.c +++ b/gdb/remote-sim.c @@ -69,8 +69,6 @@ static void gdb_os_evprintf_filtered (host_callback *, const char *, va_list); static void gdb_os_error (host_callback *, const char *, ...) ATTRIBUTE_NORETURN; -void simulator_command (char *args, int from_tty); - /* Naming convention: sim_* are the interface to the simulator (see remote-sim.h). @@ -1162,7 +1160,7 @@ gdbsim_target::mourn_inferior () /* Pass the command argument through to the simulator verbatim. The simulator must do any command interpretation work. */ -void +static void simulator_command (const char *args, int from_tty) { struct sim_inferior_data *sim_data;