This is the mail archive of the gdb-cvs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[binutils-gdb] Constify core_file_command


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=d64097b17c88ae18781ecce59d1b265b41e9551a

commit d64097b17c88ae18781ecce59d1b265b41e9551a
Author: Tom Tromey <tom@tromey.com>
Date:   Sat Sep 9 21:25:44 2017 -0600

    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.

Diff:
---
 gdb/ChangeLog  | 5 +++++
 gdb/corefile.c | 2 +-
 gdb/gdbcore.h  | 2 +-
 3 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index f583297..6704ccd 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
 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.
 
 2017-09-27  Tom Tromey  <tom@tromey.com>
diff --git a/gdb/corefile.c b/gdb/corefile.c
index da3f72f..b9d95c0 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 5d4e36e..7554245 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);


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]