remove extended_remote_create_inferior_1

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.
This commit is contained in:
Tom Tromey 2013-12-18 08:27:54 -07:00
parent 62261490a3
commit 77a1944595
2 changed files with 9 additions and 10 deletions

View 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

View 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);
}
/* Given a location's target info BP_TGT and the packet buffer BUF, output