From: Tom Tromey Date: Sun, 10 Sep 2017 03:25:44 +0000 (-0600) Subject: Constify core_file_command X-Git-Url: http://git.efficios.com/?a=commitdiff_plain;h=d64097b17c88ae18781ecce59d1b265b41e9551a;p=deliverable%2Fbinutils-gdb.git Constify core_file_command gdb/ChangeLog 2017-09-27 Tom Tromey * gdbcore.h (core_file_command): Update. * corefile.c (core_file_command): Constify. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index f58329790b..6704ccdd2e 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2017-09-27 Tom Tromey + + * gdbcore.h (core_file_command): Update. + * corefile.c (core_file_command): Constify. + 2017-09-27 Tom Tromey * user-regs.c (maintenance_print_user_registers): Constify. diff --git a/gdb/corefile.c b/gdb/corefile.c index da3f72ffe6..b9d95c07db 100644 --- a/gdb/corefile.c +++ b/gdb/corefile.c @@ -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. */ diff --git a/gdb/gdbcore.h b/gdb/gdbcore.h index 5d4e36e0c1..7554245ee3 100644 --- a/gdb/gdbcore.h +++ b/gdb/gdbcore.h @@ -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);