forked from Imagelibrary/binutils-gdb
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.
This commit is contained in:
@@ -1,3 +1,7 @@
|
|||||||
|
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>
|
2017-09-27 Tom Tromey <tom@tromey.com>
|
||||||
|
|
||||||
* symtab.c (maintenance_print_symbol_cache)
|
* symtab.c (maintenance_print_symbol_cache)
|
||||||
|
|||||||
@@ -1265,7 +1265,7 @@ display_current_task_id (void)
|
|||||||
that task. Print an error message if the task switch failed. */
|
that task. Print an error message if the task switch failed. */
|
||||||
|
|
||||||
static void
|
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));
|
const int taskno = value_as_long (parse_and_eval (taskno_str));
|
||||||
struct ada_task_info *task_info;
|
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. */
|
Otherwise, switch to the task indicated by TASKNO_STR. */
|
||||||
|
|
||||||
static void
|
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;
|
struct ui_out *uiout = current_uiout;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user