summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2017-09-12 21:33:21 -0600
committerTom Tromey <tom@tromey.com>2017-09-27 08:45:10 -0600
commit643c2ffafea7397461daea339bb8f0ef2f23b31f (patch)
tree0b7649dec58e764c27ee592fd5a8019cd4a9507d
parent510e5e562796a5d2bbd4c7208155bd8a3c03b50d (diff)
Constify some commands in ada-tasks.c
gdb/ChangeLog 2017-09-27 Tom Tromey <tom@tromey.com> * ada-tasks.c (task_command_1, task_command): Constify.
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/ada-tasks.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 9afbb77630..077fa4a9ae 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,9 @@
2017-09-27 Tom Tromey <tom@tromey.com>
+ * ada-tasks.c (task_command_1, task_command): Constify.
+
+2017-09-27 Tom Tromey <tom@tromey.com>
+
* symtab.c (maintenance_print_symbol_cache)
(maintenance_flush_symbol_cache)
(maintenance_print_symbol_cache_statistics): Constify.
diff --git a/gdb/ada-tasks.c b/gdb/ada-tasks.c
index 19f74ddac7..e0070d5b9a 100644
--- a/gdb/ada-tasks.c
+++ b/gdb/ada-tasks.c
@@ -1265,7 +1265,7 @@ display_current_task_id (void)
that task. Print an error message if the task switch failed. */
static void
-task_command_1 (char *taskno_str, int from_tty, struct inferior *inf)
+task_command_1 (const char *taskno_str, int from_tty, struct inferior *inf)
{
const int taskno = value_as_long (parse_and_eval (taskno_str));
struct ada_task_info *task_info;
@@ -1314,7 +1314,7 @@ task_command_1 (char *taskno_str, int from_tty, struct inferior *inf)
Otherwise, switch to the task indicated by TASKNO_STR. */
static void
-task_command (char *taskno_str, int from_tty)
+task_command (const char *taskno_str, int from_tty)
{
struct ui_out *uiout = current_uiout;