diff options
author | Tom Tromey <tromey@adacore.com> | 2019-05-22 15:41:28 -0400 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2019-05-22 15:41:28 -0400 |
commit | 4ca51187d21562b6626eea2bd0e45f6b64719dfd (patch) | |
tree | 495ae47403983a234de936f10b05289268195175 /gdb/target.c | |
parent | 18125b163947bfd0c358d4a5acf4e0e3b43b64cf (diff) | |
download | gdb-4ca51187d21562b6626eea2bd0e45f6b64719dfd.zip gdb-4ca51187d21562b6626eea2bd0e45f6b64719dfd.tar.gz gdb-4ca51187d21562b6626eea2bd0e45f6b64719dfd.tar.bz2 |
Constify target_ops::follow_exec
I noticed that target_ops::follow_exec took a "char *" parameter,
where "const char *" would be more correct. This patch changes this
(and related functions) to be constified.
Tested by rebuilding.
gdb/ChangeLog
2019-05-22 Tom Tromey <tromey@adacore.com>
* target.c (target_follow_exec): Constify parameter.
* target-delegates.c: Rebuild.
* remote.c (remote_target::follow_exec): Constify parameter.
* infrun.c (follow_exec): Constify parameter.
* target.h (struct target_ops) <follow_exec>: Constify parameter.
(target_follow_exec): Likewise.
Diffstat (limited to 'gdb/target.c')
-rw-r--r-- | gdb/target.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/target.c b/gdb/target.c index f492102..752e62b 100644 --- a/gdb/target.c +++ b/gdb/target.c @@ -2175,7 +2175,7 @@ target_follow_fork (int follow_child, int detach_fork) /* Target wrapper for follow exec hook. */ void -target_follow_exec (struct inferior *inf, char *execd_pathname) +target_follow_exec (struct inferior *inf, const char *execd_pathname) { current_top_target ()->follow_exec (inf, execd_pathname); } |