[RFA 28/67] Constify some commands in record-btrace.c
Tom Tromey
tom@tromey.com
Thu Sep 21 05:13:00 GMT 2017
ChangeLog
2017-09-20 Tom Tromey <tom@tromey.com>
* record-btrace.c (cmd_record_btrace_bts_start)
(cmd_record_btrace_pt_start): Constify.
---
gdb/ChangeLog | 5 +++++
gdb/record-btrace.c | 4 ++--
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/gdb/record-btrace.c b/gdb/record-btrace.c
index 783e5a1..77844bc 100644
--- a/gdb/record-btrace.c
+++ b/gdb/record-btrace.c
@@ -2883,7 +2883,7 @@ init_record_btrace_ops (void)
/* Start recording in BTS format. */
static void
-cmd_record_btrace_bts_start (char *args, int from_tty)
+cmd_record_btrace_bts_start (const char *args, int from_tty)
{
if (args != NULL && *args != 0)
error (_("Invalid argument."));
@@ -2905,7 +2905,7 @@ cmd_record_btrace_bts_start (char *args, int from_tty)
/* Start recording in Intel Processor Trace format. */
static void
-cmd_record_btrace_pt_start (char *args, int from_tty)
+cmd_record_btrace_pt_start (const char *args, int from_tty)
{
if (args != NULL && *args != 0)
error (_("Invalid argument."));
--
2.9.4
More information about the Gdb-patches
mailing list