Constify some commands in skip.c
authorTom Tromey <tom@tromey.com>
Sun, 10 Sep 2017 03:50:56 +0000 (21:50 -0600)
committerTom Tromey <tom@tromey.com>
Wed, 27 Sep 2017 14:44:37 +0000 (08:44 -0600)
gdb/ChangeLog
2017-09-27  Tom Tromey  <tom@tromey.com>

* skip.c (skip_file_command, skip_function_command)
(skip_enable_command, skip_disable_command, skip_delete_command):
Constify.

gdb/ChangeLog
gdb/skip.c

index 936ff90b1acec355c68b7bb3aa0864ee46ace2f3..6317f3ed26c57f083772b4d1c569a864b7cb7a7b 100644 (file)
@@ -1,3 +1,9 @@
+2017-09-27  Tom Tromey  <tom@tromey.com>
+
+       * skip.c (skip_file_command, skip_function_command)
+       (skip_enable_command, skip_disable_command, skip_delete_command):
+       Constify.
+
 2017-09-27  Tom Tromey  <tom@tromey.com>
 
        * record-btrace.c (cmd_record_btrace_bts_start)
index 8db0cd5d12e6f6d63ea5b3fa0a1443ebe8420a3a..6e82a33163db168b828c6a67cc0f47c4e21c5b87 100644 (file)
@@ -161,7 +161,7 @@ skiplist_entry::add_entry (bool file_is_glob, std::string &&file,
 }
 
 static void
-skip_file_command (char *arg, int from_tty)
+skip_file_command (const char *arg, int from_tty)
 {
   struct symtab *symtab;
   const char *filename = NULL;
@@ -199,7 +199,7 @@ skip_function (const char *name)
 }
 
 static void
-skip_function_command (char *arg, int from_tty)
+skip_function_command (const char *arg, int from_tty)
 {
   /* Default to the current function if no argument is given.  */
   if (arg == NULL)
@@ -424,7 +424,7 @@ info_skip_command (char *arg, int from_tty)
 }
 
 static void
-skip_enable_command (char *arg, int from_tty)
+skip_enable_command (const char *arg, int from_tty)
 {
   bool found = false;
 
@@ -440,7 +440,7 @@ skip_enable_command (char *arg, int from_tty)
 }
 
 static void
-skip_disable_command (char *arg, int from_tty)
+skip_disable_command (const char *arg, int from_tty)
 {
   bool found = false;
 
@@ -456,7 +456,7 @@ skip_disable_command (char *arg, int from_tty)
 }
 
 static void
-skip_delete_command (char *arg, int from_tty)
+skip_delete_command (const char *arg, int from_tty)
 {
   bool found = false;
 
This page took 0.039571 seconds and 4 git commands to generate.