From: Tom Tromey Date: Wed, 13 Sep 2017 03:16:47 +0000 (-0600) Subject: Constify demangle_command X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1f3f85eba696bfff4fea5e66167ee001c07c4b0b;p=binutils-gdb.git Constify demangle_command gdb/ChangeLog 2017-09-27 Tom Tromey * demangle.c (demangle_command): Constify. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index a32596e9fd6..e0899591f91 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2017-09-27 Tom Tromey + + * demangle.c (demangle_command): Constify. + 2017-09-27 Tom Tromey * progspace.c (maintenance_info_program_spaces_command): diff --git a/gdb/demangle.c b/gdb/demangle.c index 5430fb62862..1a97fb7f281 100644 --- a/gdb/demangle.c +++ b/gdb/demangle.c @@ -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;