This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]