Constify demangle_command
authorTom Tromey <tom@tromey.com>
Wed, 13 Sep 2017 03:16:47 +0000 (21:16 -0600)
committerTom Tromey <tom@tromey.com>
Wed, 27 Sep 2017 14:45:01 +0000 (08:45 -0600)
gdb/ChangeLog
2017-09-27  Tom Tromey  <tom@tromey.com>

* demangle.c (demangle_command): Constify.

gdb/ChangeLog
gdb/demangle.c

index a32596e9fd68f188588c55435a17b3b69a548da0..e0899591f914e03fd27f65e62959f382598d0b62 100644 (file)
@@ -1,3 +1,7 @@
+2017-09-27  Tom Tromey  <tom@tromey.com>
+
+       * demangle.c (demangle_command): Constify.
+
 2017-09-27  Tom Tromey  <tom@tromey.com>
 
        * progspace.c (maintenance_info_program_spaces_command):
index 5430fb62862d3bfce254f5b883773022e9da54aa..1a97fb7f281ef1e9a3c2109f64a01295264010e6 100644 (file)
@@ -43,8 +43,6 @@
 #define DEFAULT_DEMANGLING_STYLE AUTO_DEMANGLING_STYLE_STRING
 #endif
 
-static void demangle_command (char *, int);
-
 /* See documentation in gdb-demangle.h.  */
 int demangle = 1;
 
@@ -159,7 +157,7 @@ is_cplus_marker (int c)
 /* Demangle the given string in the current language.  */
 
 static void
-demangle_command (char *args, int from_tty)
+demangle_command (const char *args, int from_tty)
 {
   char *demangled;
   const char *name;
This page took 0.0382 seconds and 4 git commands to generate.