+2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
+
+ * infcmd.c (attach_post_wait): Remove the unused parameter 'args'.
+ Update the references below.
+ (struct attach_command_continuation_args)
+ (attach_command_continuation)
+ (attach_command_continuation_free_args)
+ (attach_command)
+ (notice_new_inferior): Update to remove the reference to 'args'.
+
2021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
Tom de Vries <tdevries@suse.de>
should be running. Else if ATTACH, */
static void
-attach_post_wait (const char *args, int from_tty, enum attach_post_wait_mode mode)
+attach_post_wait (int from_tty, enum attach_post_wait_mode mode)
{
struct inferior *inferior;
struct attach_command_continuation_args
{
- char *args;
int from_tty;
enum attach_post_wait_mode mode;
};
if (err)
return;
- attach_post_wait (a->args, a->from_tty, a->mode);
+ attach_post_wait (a->from_tty, a->mode);
}
static void
struct attach_command_continuation_args *a
= (struct attach_command_continuation_args *) args;
- xfree (a->args);
xfree (a);
}
/* Wait for stop. */
a = XNEW (struct attach_command_continuation_args);
- a->args = xstrdup (args);
a->from_tty = from_tty;
a->mode = mode;
add_inferior_continuation (attach_command_continuation, a,
return;
}
else
- attach_post_wait (args, from_tty, mode);
+ attach_post_wait (from_tty, mode);
disable_commit_resumed.reset_and_commit ();
}
/* Wait for stop before proceeding. */
a = XNEW (struct attach_command_continuation_args);
- a->args = xstrdup ("");
a->from_tty = from_tty;
a->mode = mode;
add_inferior_continuation (attach_command_continuation, a,
return;
}
- attach_post_wait ("" /* args */, from_tty, mode);
+ attach_post_wait (from_tty, mode);
}
/*