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 commands in mips-tdep.c


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

commit bd4c9dfe673d8af39cf400ba0118ffadb0e6111a
Author: Tom Tromey <tom@tromey.com>
Date:   Tue Sep 12 21:05:40 2017 -0600

    Constify some commands in mips-tdep.c
    
    gdb/ChangeLog
    2017-09-27  Tom Tromey  <tom@tromey.com>
    
    	* mips-tdep.c (show_mipsfpu_command, set_mipsfpu_single_command)
    	(set_mipsfpu_double_command, set_mipsfpu_none_command)
    	(set_mipsfpu_auto_command): Constify.

Diff:
---
 gdb/ChangeLog   |  6 ++++++
 gdb/mips-tdep.c | 10 +++++-----
 2 files changed, 11 insertions(+), 5 deletions(-)

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index ce85881..35f4810 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,11 @@
 2017-09-27  Tom Tromey  <tom@tromey.com>
 
+	* mips-tdep.c (show_mipsfpu_command, set_mipsfpu_single_command)
+	(set_mipsfpu_double_command, set_mipsfpu_none_command)
+	(set_mipsfpu_auto_command): Constify.
+
+2017-09-27  Tom Tromey  <tom@tromey.com>
+
 	* cli/cli-cmds.h (cd_command): Constify.
 	* cli/cli-cmds.c (cd_command): Constify.
 
diff --git a/gdb/mips-tdep.c b/gdb/mips-tdep.c
index 9cde2f4..5fc0618 100644
--- a/gdb/mips-tdep.c
+++ b/gdb/mips-tdep.c
@@ -6894,7 +6894,7 @@ set_mips_command (char *args, int from_tty)
 /* Commands to show/set the MIPS FPU type.  */
 
 static void
-show_mipsfpu_command (char *args, int from_tty)
+show_mipsfpu_command (const char *args, int from_tty)
 {
   const char *fpu;
 
@@ -6939,7 +6939,7 @@ set_mipsfpu_command (char *args, int from_tty)
 }
 
 static void
-set_mipsfpu_single_command (char *args, int from_tty)
+set_mipsfpu_single_command (const char *args, int from_tty)
 {
   struct gdbarch_info info;
   gdbarch_info_init (&info);
@@ -6953,7 +6953,7 @@ set_mipsfpu_single_command (char *args, int from_tty)
 }
 
 static void
-set_mipsfpu_double_command (char *args, int from_tty)
+set_mipsfpu_double_command (const char *args, int from_tty)
 {
   struct gdbarch_info info;
   gdbarch_info_init (&info);
@@ -6967,7 +6967,7 @@ set_mipsfpu_double_command (char *args, int from_tty)
 }
 
 static void
-set_mipsfpu_none_command (char *args, int from_tty)
+set_mipsfpu_none_command (const char *args, int from_tty)
 {
   struct gdbarch_info info;
   gdbarch_info_init (&info);
@@ -6981,7 +6981,7 @@ set_mipsfpu_none_command (char *args, int from_tty)
 }
 
 static void
-set_mipsfpu_auto_command (char *args, int from_tty)
+set_mipsfpu_auto_command (const char *args, int from_tty)
 {
   mips_fpu_type_auto = 1;
 }


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