Constify some commands in record-btrace.c

gdb/ChangeLog
2017-09-27  Tom Tromey  <tom@tromey.com>

	* record-btrace.c (cmd_record_btrace_bts_start)
	(cmd_record_btrace_pt_start): Constify.
This commit is contained in:
Tom Tromey 2017-09-09 21:46:34 -06:00
parent e99c83e741
commit cdb34d4a1c
2 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2017-09-27 Tom Tromey <tom@tromey.com>
* record-btrace.c (cmd_record_btrace_bts_start)
(cmd_record_btrace_pt_start): Constify.
2017-09-27 Tom Tromey <tom@tromey.com> 2017-09-27 Tom Tromey <tom@tromey.com>
* symmisc.c (maintenance_print_symbols) * symmisc.c (maintenance_print_symbols)

View file

@ -2883,7 +2883,7 @@ init_record_btrace_ops (void)
/* Start recording in BTS format. */ /* Start recording in BTS format. */
static void 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) if (args != NULL && *args != 0)
error (_("Invalid argument.")); error (_("Invalid argument."));
@ -2905,7 +2905,7 @@ cmd_record_btrace_bts_start (char *args, int from_tty)
/* Start recording in Intel Processor Trace format. */ /* Start recording in Intel Processor Trace format. */
static void 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) if (args != NULL && *args != 0)
error (_("Invalid argument.")); error (_("Invalid argument."));