From: Tom Tromey Date: Wed, 13 Sep 2017 03:32:18 +0000 (-0600) Subject: Constify some commands in inferior.c X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e503b1919bc5d06684ba6b1d09a6ccdf0a50b879;p=binutils-gdb.git Constify some commands in inferior.c gdb/ChangeLog 2017-09-27 Tom Tromey * inferior.c (detach_inferior_command, kill_inferior_command) (inferior_command): Constify. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index cece16ab634..6a3476946a8 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2017-09-27 Tom Tromey + + * inferior.c (detach_inferior_command, kill_inferior_command) + (inferior_command): Constify. + 2017-09-27 Tom Tromey * regcache.c (regcache_print, maintenance_print_registers) diff --git a/gdb/inferior.c b/gdb/inferior.c index b916909905c..ba8efe23426 100644 --- a/gdb/inferior.c +++ b/gdb/inferior.c @@ -596,7 +596,7 @@ print_inferior (struct ui_out *uiout, char *requested_inferiors) } static void -detach_inferior_command (char *args, int from_tty) +detach_inferior_command (const char *args, int from_tty) { struct thread_info *tp; @@ -635,7 +635,7 @@ detach_inferior_command (char *args, int from_tty) } static void -kill_inferior_command (char *args, int from_tty) +kill_inferior_command (const char *args, int from_tty) { struct thread_info *tp; @@ -676,7 +676,7 @@ kill_inferior_command (char *args, int from_tty) } static void -inferior_command (char *args, int from_tty) +inferior_command (const char *args, int from_tty) { struct inferior *inf; int num;