]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
constify inf_child_open_target
authorTom Tromey <tromey@redhat.com>
Mon, 21 Jul 2014 22:49:09 +0000 (16:49 -0600)
committerTom Tromey <tromey@redhat.com>
Thu, 24 Jul 2014 17:30:02 +0000 (11:30 -0600)
This constifies an argument to inf_child_open_target.

2014-07-24  Tom Tromey  <tromey@redhat.com>

* inf-child.c (inf_child_open_target): Make "arg" const.
* inf-child.h (inf_child_open_target): Update.

gdb/ChangeLog
gdb/inf-child.c
gdb/inf-child.h

index b7d0739d870ebe7ba3dd3243e877a31474202d2a..3f8d0557b83d1e4147ea7ab0687a7a512b99478d 100644 (file)
@@ -1,3 +1,8 @@
+2014-07-24  Tom Tromey  <tromey@redhat.com>
+
+       * inf-child.c (inf_child_open_target): Make "arg" const.
+       * inf-child.h (inf_child_open_target): Update.
+
 2014-07-24  Tom Tromey  <tromey@redhat.com>
 
        * environ.c (unset_in_environ): Make "var" const.
index 897e63597243b46b97d2a68ebdd1e2b3124acc97..883ed775eadc8e2afaeb5d707d655f4572e12385 100644 (file)
@@ -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);
index b2692cabe529588659697d6e65163e4e04658806..163cab6303bbec42b3c8310716bdfc6d0e9240a7 100644 (file)
@@ -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.  */