From: Tom Tromey Date: Mon, 21 Jul 2014 22:49:09 +0000 (-0600) Subject: constify inf_child_open_target X-Git-Tag: hjl/linux/release/2.24.51.0.4~1^2~10^2~65 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0d5f0dbeb03bab0ce02bf9a4e61d298ad7f1c9bb;p=thirdparty%2Fbinutils-gdb.git constify inf_child_open_target This constifies an argument to inf_child_open_target. 2014-07-24 Tom Tromey * inf-child.c (inf_child_open_target): Make "arg" const. * inf-child.h (inf_child_open_target): Update. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index b7d0739d870..3f8d0557b83 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2014-07-24 Tom Tromey + + * inf-child.c (inf_child_open_target): Make "arg" const. + * inf-child.h (inf_child_open_target): Update. + 2014-07-24 Tom Tromey * environ.c (unset_in_environ): Make "var" const. diff --git a/gdb/inf-child.c b/gdb/inf-child.c index 897e6359724..883ed775ead 100644 --- a/gdb/inf-child.c +++ b/gdb/inf-child.c @@ -122,7 +122,8 @@ static int inf_child_explicitly_opened; /* See inf-child.h. */ void -inf_child_open_target (struct target_ops *target, char *arg, int from_tty) +inf_child_open_target (struct target_ops *target, const char *arg, + int from_tty) { target_preopen (from_tty); push_target (target); diff --git a/gdb/inf-child.h b/gdb/inf-child.h index b2692cabe52..163cab6303b 100644 --- a/gdb/inf-child.h +++ b/gdb/inf-child.h @@ -34,7 +34,7 @@ extern void store_waitstatus (struct target_waitstatus *, int); the target, in case it need to override to_open. */ extern void inf_child_open_target (struct target_ops *target, - char *arg, int from_tty); + const char *arg, int from_tty); /* To be called by the native target's to_mourn_inferior routine. */