Constify core_file_command

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

	* gdbcore.h (core_file_command): Update.
	* corefile.c (core_file_command): Constify.
This commit is contained in:
Tom Tromey 2017-09-09 21:25:44 -06:00
parent 4d4589ef76
commit d64097b17c
3 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2017-09-27 Tom Tromey <tom@tromey.com>
* gdbcore.h (core_file_command): Update.
* corefile.c (core_file_command): Constify.
2017-09-27 Tom Tromey <tom@tromey.com>
* user-regs.c (maintenance_print_user_registers): Constify.

View File

@ -61,7 +61,7 @@ struct target_ops *core_target;
/* Backward compatability with old way of specifying core files. */
void
core_file_command (char *filename, int from_tty)
core_file_command (const char *filename, int from_tty)
{
dont_repeat (); /* Either way, seems bogus. */

View File

@ -141,7 +141,7 @@ extern struct target_ops *core_target;
extern int write_files;
extern void core_file_command (char *filename, int from_tty);
extern void core_file_command (const char *filename, int from_tty);
extern void exec_file_attach (const char *filename, int from_tty);