]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Constify some commands in target-descriptions.c
authorTom Tromey <tom@tromey.com>
Sun, 10 Sep 2017 03:52:05 +0000 (21:52 -0600)
committerTom Tromey <tom@tromey.com>
Wed, 27 Sep 2017 14:44:41 +0000 (08:44 -0600)
gdb/ChangeLog
2017-09-27  Tom Tromey  <tom@tromey.com>

* target-descriptions.c (unset_tdesc_filename_cmd)
(maint_print_c_tdesc_cmd, maintenance_check_xml_descriptions):
Constify.

gdb/ChangeLog
gdb/target-descriptions.c

index bdbf82917e6c1fa19069ef1b7a215223677998ef..e67d380b6c9fbe682970817e7e2f60388843da9f 100644 (file)
@@ -1,3 +1,9 @@
+2017-09-27  Tom Tromey  <tom@tromey.com>
+
+       * target-descriptions.c (unset_tdesc_filename_cmd)
+       (maint_print_c_tdesc_cmd, maintenance_check_xml_descriptions):
+       Constify.
+
 2017-09-27  Tom Tromey  <tom@tromey.com>
 
        * dummy-frame.c (maintenance_print_dummy_frames): Constify.
index 877fd68fc254354a269188dc404f9a25c6455976..6858ee1be1e67c147dc43822708cee0c44e5c9c9 100644 (file)
@@ -1899,7 +1899,7 @@ show_tdesc_filename_cmd (struct ui_file *file, int from_tty,
 }
 
 static void
-unset_tdesc_filename_cmd (char *args, int from_tty)
+unset_tdesc_filename_cmd (const char *args, int from_tty)
 {
   xfree (target_description_filename);
   target_description_filename = NULL;
@@ -2288,7 +2288,7 @@ private:
 };
 
 static void
-maint_print_c_tdesc_cmd (char *args, int from_tty)
+maint_print_c_tdesc_cmd (const char *args, int from_tty)
 {
   const struct target_desc *tdesc;
   const char *filename;
@@ -2362,7 +2362,7 @@ record_xml_tdesc (const char *xml_file, const struct target_desc *tdesc)
    found in the specified directory DIR.  */
 
 static void
-maintenance_check_xml_descriptions (char *dir, int from_tty)
+maintenance_check_xml_descriptions (const char *dir, int from_tty)
 {
   if (dir == NULL)
     error (_("Missing dir name"));