Constify core_file_command
authorTom Tromey <tom@tromey.com>
Sun, 10 Sep 2017 03:25:44 +0000 (21:25 -0600)
committerTom Tromey <tom@tromey.com>
Wed, 27 Sep 2017 14:44:25 +0000 (08:44 -0600)
gdb/ChangeLog
2017-09-27  Tom Tromey  <tom@tromey.com>

* gdbcore.h (core_file_command): Update.
* corefile.c (core_file_command): Constify.

gdb/ChangeLog
gdb/corefile.c
gdb/gdbcore.h

index f58329790b2cb435b0a28eb5c415f50548063aa4..6704ccdd2e13da7d81627bdaf4f622428546d5d2 100644 (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.
index da3f72ffe6276386f682bf813288d1a24ee3692d..b9d95c07dbde272babac2943bc605e7b92e904ca 100644 (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.  */
 
index 5d4e36e0c13501ee1b4d05990c923c6703a9173b..7554245ee3a326c0bd1fd8f230091739c80efef1 100644 (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);
 
This page took 0.033543 seconds and 4 git commands to generate.