forked from Imagelibrary/binutils-gdb
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.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user