remove extended_remote_create_inferior_1
authorTom Tromey <tromey@redhat.com>
Wed, 18 Dec 2013 15:27:54 +0000 (08:27 -0700)
committerTom Tromey <tromey@redhat.com>
Thu, 16 Jan 2014 19:12:32 +0000 (12:12 -0700)
I noticed that extended_remote_create_inferior_1 is called from a
single spot.  This patch unifies the callee and caller.  It's just a
simple cleanup that made the coming refactoring simpler.

2014-01-16  Tom Tromey  <tromey@redhat.com>

* remote.c (extended_remote_create_inferior): Rename from
extended_remote_create_inferior_1.  Add "ops" argument.  Remove
old implementation.

gdb/ChangeLog
gdb/remote.c

index 6eef81a..b865930 100644 (file)
@@ -1,3 +1,9 @@
+2014-01-16  Tom Tromey  <tromey@redhat.com>
+
+       * remote.c (extended_remote_create_inferior): Rename from
+       extended_remote_create_inferior_1.  Add "ops" argument.  Remove
+       old implementation.
+
 2014-01-16  Pedro Alves  <palves@redhat.com>
 
        * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
index d40485a..e8469e3 100644 (file)
@@ -8131,8 +8131,9 @@ extended_remote_run (char *args)
    environment.  */
 
 static void
-extended_remote_create_inferior_1 (char *exec_file, char *args,
-                                  char **env, int from_tty)
+extended_remote_create_inferior (struct target_ops *ops,
+                                char *exec_file, char *args,
+                                char **env, int from_tty)
 {
   int run_worked;
   char *stop_reply;
@@ -8178,14 +8179,6 @@ extended_remote_create_inferior_1 (char *exec_file, char *args,
   /* Get updated offsets, if the stub uses qOffsets.  */
   get_offsets ();
 }
-
-static void
-extended_remote_create_inferior (struct target_ops *ops, 
-                                char *exec_file, char *args,
-                                char **env, int from_tty)
-{
-  extended_remote_create_inferior_1 (exec_file, args, env, from_tty);
-}
 \f
 
 /* Given a location's target info BP_TGT and the packet buffer BUF,  output