mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-03-07 13:39:43 +08:00
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:
parent
62261490a3
commit
77a1944595
@ -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
|
||||
|
13
gdb/remote.c
13
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
|
||||
|
Loading…
Reference in New Issue
Block a user