From 77a194459598886be9a0bf3e3bac0a11025ef208 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Wed, 18 Dec 2013 08:27:54 -0700 Subject: [PATCH] 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 * remote.c (extended_remote_create_inferior): Rename from extended_remote_create_inferior_1. Add "ops" argument. Remove old implementation. --- gdb/ChangeLog | 6 ++++++ gdb/remote.c | 13 +++---------- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 6eef81ac9da..b8659306fbb 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2014-01-16 Tom Tromey + + * remote.c (extended_remote_create_inferior): Rename from + extended_remote_create_inferior_1. Add "ops" argument. Remove + old implementation. + 2014-01-16 Pedro Alves * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow diff --git a/gdb/remote.c b/gdb/remote.c index d40485ab710..e8469e3983f 100644 --- a/gdb/remote.c +++ b/gdb/remote.c @@ -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 -- 2.30.2