[RFA,14/67] Constify core_file_command
Commit Message
ChangeLog
2017-09-20 Tom Tromey <tom@tromey.com>
* gdbcore.h (core_file_command): Update.
* corefile.c (core_file_command): Constify.
---
gdb/ChangeLog | 5 +++++
gdb/corefile.c | 2 +-
gdb/gdbcore.h | 2 +-
3 files changed, 7 insertions(+), 2 deletions(-)
@@ -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. */
@@ -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);