This is the mail archive of the gdb-cvs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[binutils-gdb] Constify some functions in psymtab.c


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=990b9f9f5a301cef9c16035c341a7b0b7ccc983d

commit 990b9f9f5a301cef9c16035c341a7b0b7ccc983d
Author: Tom Tromey <tom@tromey.com>
Date:   Sat Sep 9 21:22:28 2017 -0600

    Constify some functions in psymtab.c
    
    gdb/ChangeLog
    2017-09-27  Tom Tromey  <tom@tromey.com>
    
    	* psymtab.c (maintenance_print_psymbols)
    	(maintenance_info_psymtabs, maintenance_check_psymtabs):
    	Constify.

Diff:
---
 gdb/ChangeLog | 6 ++++++
 gdb/psymtab.c | 6 +++---
 2 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 676aadd..004e3db 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,11 @@
 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.
 
 2017-09-27  Tom Tromey  <tom@tromey.com>
diff --git a/gdb/psymtab.c b/gdb/psymtab.c
index ea300fe..4527d69 100644
--- a/gdb/psymtab.c
+++ b/gdb/psymtab.c
@@ -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;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]