[RFA 7/8] Add truncate_repeat_arguments function

Yao Qi qiyaoltc@gmail.com
Mon Oct 16 09:53:00 GMT 2017


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 (齐尧)



More information about the Gdb-patches mailing list