This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[RFA 29/67] Constify some commands in skip.c
- From: Tom Tromey <tom at tromey dot com>
- To: gdb-patches at sourceware dot org
- Cc: Tom Tromey <tom at tromey dot com>
- Date: Wed, 20 Sep 2017 23:09:45 -0600
- Subject: [RFA 29/67] Constify some commands in skip.c
- Authentication-results: sourceware.org; auth=none
- References: <20170921051023.19023-1-tom@tromey.com>
ChangeLog
2017-09-20 Tom Tromey <tom@tromey.com>
* skip.c (skip_file_command, skip_function_command)
(skip_enable_command, skip_disable_command, skip_delete_command):
Constify.
---
gdb/ChangeLog | 6 ++++++
gdb/skip.c | 10 +++++-----
2 files changed, 11 insertions(+), 5 deletions(-)
diff --git a/gdb/skip.c b/gdb/skip.c
index 8db0cd5..6e82a33 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;
--
2.9.4