* 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>
+
+ * 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:
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 ());
#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);
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. */
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;
/* See target.h. */
void
-target_save_record (char *filename)
+target_save_record (const char *filename)
{
struct target_ops *t;
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);
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);