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 b7d0739..3f8d055 100644 (file)
@@ -1,5 +1,10 @@
 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.
        * environ.h (unset_in_environ): Update.
 
index 897e635..883ed77 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 b2692ca..163cab6 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.  */