* gcore.c (create_gcore_bfd): Make 'filename' const.
authorTom Tromey <tromey@redhat.com>
Tue, 14 May 2013 20:30:48 +0000 (20:30 +0000)
committerTom Tromey <tromey@redhat.com>
Tue, 14 May 2013 20:30:48 +0000 (20:30 +0000)
* gcore.h (create_gcore_bfd): Make 'filename' const.
* record-full.c (record_full_save): Make 'recfilename' const.
* target.c (target_save_record): Make 'filename' const.
* target.h (struct target_ops) <to_save_record>: Make 'filename'
const.
(target_save_record): Likewise.

gdb/ChangeLog
gdb/gcore.c
gdb/gcore.h
gdb/record-full.c
gdb/target.c
gdb/target.h

index c978f0bcd07de6fe30f2b993793402c6e0b0e3ad..ed5ee03c98521c54c3770abb85e9106515c91f7e 100644 (file)
@@ -1,3 +1,13 @@
+2013-05-13  Tom Tromey  <tromey@redhat.com>
+
+       * gcore.c (create_gcore_bfd): Make 'filename' const.
+       * gcore.h (create_gcore_bfd): Make 'filename' const.
+       * record-full.c (record_full_save): Make 'recfilename' const.
+       * target.c (target_save_record): Make 'filename' const.
+       * target.h (struct target_ops) <to_save_record>: Make 'filename'
+       const.
+       (target_save_record): Likewise.
+
 2013-05-13  Tom Tromey  <tromey@redhat.com>
 
        PR gdb/15338:
index 1d1c20fef8ea0f5eedae891a2bd679de8e2032d2..620be54dd99215010eabacde6ffa2220bfd3d6e8 100644 (file)
@@ -49,7 +49,7 @@ static int gcore_memory_sections (bfd *);
    Open a new bfd core file for output, and return the handle.  */
 
 bfd *
-create_gcore_bfd (char *filename)
+create_gcore_bfd (const char *filename)
 {
   bfd *obfd = gdb_bfd_openw (filename, default_gcore_target ());
 
index 8d2e8b612910ebc7b6ad9ed0a022256a681d0600..0f67a1e34e02255a7546c85a327f7b943331d743 100644 (file)
@@ -20,7 +20,7 @@
 #if !defined (GCORE_H)
 #define GCORE_H 1
 
-extern bfd *create_gcore_bfd (char *filename);
+extern bfd *create_gcore_bfd (const char *filename);
 extern void write_gcore_file (bfd *obfd);
 extern bfd *load_corefile (char *filename, int from_tty);
 
index aa3ad8532d40139ce740e2016bbd6d6e7187b97c..3a8d32637d260429a17f9fc62d643fb61ffb0c36 100644 (file)
@@ -251,7 +251,7 @@ static void
 
 static void record_full_goto_insn (struct record_full_entry *entry,
                                   enum exec_direction_kind dir);
-static void record_full_save (char *recfilename);
+static void record_full_save (const char *recfilename);
 
 /* Alloc and free functions for record_full_reg, record_full_mem, and
    record_full_end entries.  */
@@ -2632,7 +2632,7 @@ record_full_save_cleanups (void *data)
    format, with an extra section for our data.  */
 
 static void
-record_full_save (char *recfilename)
+record_full_save (const char *recfilename)
 {
   struct record_full_entry *cur_record_full_list;
   uint32_t magic;
index 8f8e46a2607a6ffce0412a75e85c8aa1053d256f..8eadd63f8ddc375c6f40bdfa098fd656977a385d 100644 (file)
@@ -4296,7 +4296,7 @@ target_info_record (void)
 /* See target.h.  */
 
 void
-target_save_record (char *filename)
+target_save_record (const char *filename)
 {
   struct target_ops *t;
 
index 8e650cf4790d5de3020149f956b13c5f20b1e230..993e7b067c2f68f882a9d5682fe141b1b53340b0 100644 (file)
@@ -892,7 +892,7 @@ struct target_ops
     void (*to_info_record) (void);
 
     /* Save the recorded execution trace into a file.  */
-    void (*to_save_record) (char *filename);
+    void (*to_save_record) (const char *filename);
 
     /* Delete the recorded execution trace from the current position onwards.  */
     void (*to_delete_record) (void);
@@ -2008,7 +2008,7 @@ extern void target_stop_recording (void);
 extern void target_info_record (void);
 
 /* See to_save_record in struct target_ops.  */
-extern void target_save_record (char *filename);
+extern void target_save_record (const char *filename);
 
 /* Query if the target supports deleting the execution log.  */
 extern int target_supports_delete_record (void);
This page took 0.033168 seconds and 4 git commands to generate.