Remove simulator_command declaration, make static
authorSimon Marchi <simon.marchi@efficios.com>
Tue, 26 Nov 2019 17:12:04 +0000 (12:12 -0500)
committerSimon Marchi <simon.marchi@efficios.com>
Tue, 26 Nov 2019 19:29:20 +0000 (14:29 -0500)
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

gdb/ChangeLog
gdb/remote-sim.c

index afb0b65c7955b3a9341cc946bf9aae62c3a7de87..ad0f981975ceb872a5d63f1d6279661b562ab87d 100644 (file)
@@ -1,3 +1,8 @@
+2019-11-26  Simon Marchi  <simon.marchi@efficios.com>
+
+       * remote-sim.c (simulator_command): Make static, remove
+       declaration.
+
 2019-11-26  Simon Marchi  <simon.marchi@efficios.com>
 
        * unittests/array-view-selftests.c (check_ptr_size_ctor2): Make
index 67b46909455a2343147c49b0a5861168ae6661bf..1c40c572525f2c6daf501d02276612e26780edca 100644 (file)
@@ -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;
This page took 0.038982 seconds and 4 git commands to generate.