From: Tom Tromey Date: Sun, 10 Sep 2017 03:50:56 +0000 (-0600) Subject: Constify some commands in skip.c X-Git-Tag: users/gbenson/thread_db-test/2017-11-22~766 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=863779b0c64917a1580a9e505762642ef5833575;p=thirdparty%2Fbinutils-gdb.git Constify some commands in skip.c gdb/ChangeLog 2017-09-27 Tom Tromey * skip.c (skip_file_command, skip_function_command) (skip_enable_command, skip_disable_command, skip_delete_command): Constify. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 936ff90b1ac..6317f3ed26c 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2017-09-27 Tom Tromey + + * skip.c (skip_file_command, skip_function_command) + (skip_enable_command, skip_disable_command, skip_delete_command): + Constify. + 2017-09-27 Tom Tromey * record-btrace.c (cmd_record_btrace_bts_start) diff --git a/gdb/skip.c b/gdb/skip.c index 8db0cd5d12e..6e82a33163d 100644 --- a/gdb/skip.c +++ b/gdb/skip.c @@ -161,7 +161,7 @@ skiplist_entry::add_entry (bool file_is_glob, std::string &&file, } static void -skip_file_command (char *arg, int from_tty) +skip_file_command (const char *arg, int from_tty) { struct symtab *symtab; const char *filename = NULL; @@ -199,7 +199,7 @@ skip_function (const char *name) } static void -skip_function_command (char *arg, int from_tty) +skip_function_command (const char *arg, int from_tty) { /* Default to the current function if no argument is given. */ if (arg == NULL) @@ -424,7 +424,7 @@ info_skip_command (char *arg, int from_tty) } static void -skip_enable_command (char *arg, int from_tty) +skip_enable_command (const char *arg, int from_tty) { bool found = false; @@ -440,7 +440,7 @@ skip_enable_command (char *arg, int from_tty) } static void -skip_disable_command (char *arg, int from_tty) +skip_disable_command (const char *arg, int from_tty) { bool found = false; @@ -456,7 +456,7 @@ skip_disable_command (char *arg, int from_tty) } static void -skip_delete_command (char *arg, int from_tty) +skip_delete_command (const char *arg, int from_tty) { bool found = false;