This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA 7/8] Add truncate_repeat_arguments function
Tom Tromey <tom@tromey.com> writes:
> +/* If not NULL, the arguments that should be passed if the current
> + command is repeated. */
> +
> +static const char *repeat_arguments;
> +
> +/* See command.h. */
> +
> +void
> +set_repeat_arguments (const char *args)
> +{
> + repeat_arguments = args;
> +}
This global variable worries me a little bit. Is it possible that
different part of GDB request to execute the repeatable commands? For
example, CLI and MI issues command, or different UIs issue command.
--
Yao (齐尧)