From 4ca51187d21562b6626eea2bd0e45f6b64719dfd Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Wed, 22 May 2019 15:41:28 -0400 Subject: 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 * 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) : Constify parameter. (target_follow_exec): Likewise. --- gdb/infrun.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/infrun.c') diff --git a/gdb/infrun.c b/gdb/infrun.c index 37df561de0b..4fd92f1bac2 100644 --- a/gdb/infrun.c +++ b/gdb/infrun.c @@ -1078,7 +1078,7 @@ show_follow_exec_mode_string (struct ui_file *file, int from_tty, /* EXEC_FILE_TARGET is assumed to be non-NULL. */ static void -follow_exec (ptid_t ptid, char *exec_file_target) +follow_exec (ptid_t ptid, const char *exec_file_target) { struct inferior *inf = current_inferior (); int pid = ptid.pid (); -- cgit v1.2.1