summaryrefslogtreecommitdiff
path: root/gdb/probe.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2017-09-12 20:42:32 -0600
committerTom Tromey <tom@tromey.com>2017-09-27 08:44:50 -0600
commit67810076681180b74d92f98d11c4a3d94885c9e5 (patch)
tree1f83fe350bcbae8426d6510eb1575feab79b585e /gdb/probe.c
parent1d8b34a7a233d89938fd173389f7884aa7d105b3 (diff)
downloadbinutils-gdb-67810076681180b74d92f98d11c4a3d94885c9e5.tar.gz
Constify some commands in probes.c
gdb/ChangeLog 2017-09-27 Tom Tromey <tom@tromey.com> * probe.c (enable_probes_command, disable_probes_command): Constify.
Diffstat (limited to 'gdb/probe.c')
-rw-r--r--gdb/probe.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/probe.c b/gdb/probe.c
index f44d25dbd3f..c6435e48ba2 100644
--- a/gdb/probe.c
+++ b/gdb/probe.c
@@ -674,7 +674,7 @@ info_probes_command (char *arg, int from_tty)
/* Implementation of the `enable probes' command. */
static void
-enable_probes_command (char *arg, int from_tty)
+enable_probes_command (const char *arg, int from_tty)
{
std::string provider, probe_name, objname;
struct cleanup *cleanup = make_cleanup (null_cleanup, NULL);
@@ -713,7 +713,7 @@ enable_probes_command (char *arg, int from_tty)
/* Implementation of the `disable probes' command. */
static void
-disable_probes_command (char *arg, int from_tty)
+disable_probes_command (const char *arg, int from_tty)
{
std::string provider, probe_name, objname;
struct cleanup *cleanup = make_cleanup (null_cleanup, NULL);