Constify some commands in probes.c
authorTom Tromey <tom@tromey.com>
Wed, 13 Sep 2017 02:42:32 +0000 (20:42 -0600)
committerTom Tromey <tom@tromey.com>
Wed, 27 Sep 2017 14:44:50 +0000 (08:44 -0600)
gdb/ChangeLog
2017-09-27  Tom Tromey  <tom@tromey.com>

* probe.c (enable_probes_command, disable_probes_command):
Constify.

gdb/ChangeLog
gdb/probe.c

index 407f9418bf223381c610dbedddabdc2c21969b76..b799421c3e6bfc3390e529e24c16d68b461d1a4a 100644 (file)
@@ -1,3 +1,8 @@
+2017-09-27  Tom Tromey  <tom@tromey.com>
+
+       * probe.c (enable_probes_command, disable_probes_command):
+       Constify.
+
 2017-09-27  Tom Tromey  <tom@tromey.com>
 
        * symfile.c (symbol_file_command): Constify.
index f44d25dbd3f051598312fd514b60c6fec7933830..c6435e48ba2afcd7537f5695769e227f6d934a44 100644 (file)
@@ -674,7 +674,7 @@ info_probes_command (char *arg, int from_tty)
 /* Implementation of the `enable probes' command.  */
 
 static void
-enable_probes_command (char *arg, int from_tty)
+enable_probes_command (const char *arg, int from_tty)
 {
   std::string provider, probe_name, objname;
   struct cleanup *cleanup = make_cleanup (null_cleanup, NULL);
@@ -713,7 +713,7 @@ enable_probes_command (char *arg, int from_tty)
 /* Implementation of the `disable probes' command.  */
 
 static void
-disable_probes_command (char *arg, int from_tty)
+disable_probes_command (const char *arg, int from_tty)
 {
   std::string provider, probe_name, objname;
   struct cleanup *cleanup = make_cleanup (null_cleanup, NULL);