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

* psymtab.c (maintenance_print_psymbols)
(maintenance_info_psymtabs, maintenance_check_psymtabs):
Constify.

gdb/ChangeLog
gdb/psymtab.c

index 676aadd12637f1522eecaa0f9e2b152741dfbeb1..004e3db1cf38f3bec83846ef19deccd00b152635 100644 (file)
@@ -1,3 +1,9 @@
+2017-09-27  Tom Tromey  <tom@tromey.com>
+
+       * psymtab.c (maintenance_print_psymbols)
+       (maintenance_info_psymtabs, maintenance_check_psymtabs):
+       Constify.
+
 2017-09-27  Tom Tromey  <tom@tromey.com>
 
        * windows-tdep.c (display_tib): Constify.
index ea300fe86ef61b3929de9a9285a7c5df8ac006d5..4527d6936885f64561d1cd0a5dd64e573dd28634 100644 (file)
@@ -1892,7 +1892,7 @@ dump_psymtab_addrmap (struct objfile *objfile, struct partial_symtab *psymtab,
 }
 
 static void
-maintenance_print_psymbols (char *args, int from_tty)
+maintenance_print_psymbols (const char *args, int from_tty)
 {
   struct ui_file *outfile = gdb_stdout;
   char *address_arg = NULL, *source_arg = NULL, *objfile_arg = NULL;
@@ -2050,7 +2050,7 @@ maintenance_print_psymbols (char *args, int from_tty)
 /* List all the partial symbol tables whose names match REGEXP (optional).  */
 
 static void
-maintenance_info_psymtabs (char *regexp, int from_tty)
+maintenance_info_psymtabs (const char *regexp, int from_tty)
 {
   struct program_space *pspace;
   struct objfile *objfile;
@@ -2156,7 +2156,7 @@ maintenance_info_psymtabs (char *regexp, int from_tty)
 /* Check consistency of currently expanded psymtabs vs symtabs.  */
 
 static void
-maintenance_check_psymtabs (char *ignore, int from_tty)
+maintenance_check_psymtabs (const char *ignore, int from_tty)
 {
   struct symbol *sym;
   struct partial_symbol **psym;
This page took 0.03795 seconds and 4 git commands to generate.