diff options
author | Tom Tromey <tromey@redhat.com> | 2013-12-18 08:27:54 -0700 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2014-01-16 12:12:32 -0700 |
commit | 77a194459598886be9a0bf3e3bac0a11025ef208 (patch) | |
tree | 304e39297a8e76b8b2d901ae355f2941cf9111f0 /gdb/remote.c | |
parent | 62261490a36c6911c5eb61be7cddcfb1bd19ba18 (diff) | |
download | gdb-77a194459598886be9a0bf3e3bac0a11025ef208.zip gdb-77a194459598886be9a0bf3e3bac0a11025ef208.tar.gz gdb-77a194459598886be9a0bf3e3bac0a11025ef208.tar.bz2 |
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.
Diffstat (limited to 'gdb/remote.c')
-rw-r--r-- | gdb/remote.c | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/gdb/remote.c b/gdb/remote.c index d40485a..e8469e3 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 |