aboutsummaryrefslogtreecommitdiff
path: root/gdb/mips-tdep.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2017-09-12 21:05:40 -0600
committerTom Tromey <tom@tromey.com>2017-09-27 08:44:52 -0600
commitbd4c9dfe673d8af39cf400ba0118ffadb0e6111a (patch)
tree4177a667aeff50b1a69e54532ec2c3df9bce7f62 /gdb/mips-tdep.c
parent5e93d4c64bbc3b4fb306e54cdcd79bc8ff86b2f0 (diff)
downloadgdb-bd4c9dfe673d8af39cf400ba0118ffadb0e6111a.zip
gdb-bd4c9dfe673d8af39cf400ba0118ffadb0e6111a.tar.gz
gdb-bd4c9dfe673d8af39cf400ba0118ffadb0e6111a.tar.bz2
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.
Diffstat (limited to 'gdb/mips-tdep.c')
-rw-r--r--gdb/mips-tdep.c10
1 files changed, 5 insertions, 5 deletions
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;
}