This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
[binutils-gdb] Constify some commands in probes.c
- From: Tom Tromey <tromey at sourceware dot org>
- To: gdb-cvs at sourceware dot org
- Date: 27 Sep 2017 14:57:17 -0000
- Subject: [binutils-gdb] Constify some commands in probes.c
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=67810076681180b74d92f98d11c4a3d94885c9e5
commit 67810076681180b74d92f98d11c4a3d94885c9e5
Author: Tom Tromey <tom@tromey.com>
Date: Tue Sep 12 20:42:32 2017 -0600
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.
Diff:
---
gdb/ChangeLog | 5 +++++
gdb/probe.c | 4 ++--
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 407f941..b799421 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
2017-09-27 Tom Tromey <tom@tromey.com>
+ * probe.c (enable_probes_command, disable_probes_command):
+ Constify.
+
+2017-09-27 Tom Tromey <tom@tromey.com>
+
* symfile.c (symbol_file_command): Constify.
* gdbcore.h (deprecated_file_changed_hook): Constify.
* exec.c (deprecated_file_changed_hook, exec_file_command)
diff --git a/gdb/probe.c b/gdb/probe.c
index f44d25d..c6435e4 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);