aboutsummaryrefslogtreecommitdiff
path: root/gdb/target.h
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2013-05-14 20:30:48 +0000
committerTom Tromey <tromey@redhat.com>2013-05-14 20:30:48 +0000
commit85e1311a3cf4df0eafe2886a29fc753054b71e37 (patch)
treee244714448eac93a8619c43a319f88427358e3b0 /gdb/target.h
parent152af37f7f52e0039c21eb8c4fc0309fe6678913 (diff)
downloadgdb-85e1311a3cf4df0eafe2886a29fc753054b71e37.zip
gdb-85e1311a3cf4df0eafe2886a29fc753054b71e37.tar.gz
gdb-85e1311a3cf4df0eafe2886a29fc753054b71e37.tar.bz2
* 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.
Diffstat (limited to 'gdb/target.h')
-rw-r--r--gdb/target.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/target.h b/gdb/target.h
index 8e650cf..993e7b0 100644
--- a/gdb/target.h
+++ b/gdb/target.h
@@ -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);