Constify target_ops::follow_exec
authorTom Tromey <tromey@adacore.com>
Wed, 22 May 2019 19:41:28 +0000 (15:41 -0400)
committerTom Tromey <tromey@adacore.com>
Wed, 22 May 2019 19:41:28 +0000 (15:41 -0400)
commit4ca51187d21562b6626eea2bd0e45f6b64719dfd
tree495ae47403983a234de936f10b05289268195175
parent18125b163947bfd0c358d4a5acf4e0e3b43b64cf
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.
gdb/ChangeLog
gdb/infrun.c
gdb/remote.c
gdb/target-delegates.c
gdb/target.c
gdb/target.h