Re: -inferior-tty-show and -inferior-tty-set

Daniel Jacobowitz
2005-07-13T03:59:06Z

On Wed, Jul 13, 2005 at 02:58:09PM +1200, Nick Roberts wrote:
>
> -inferior-tty-show and -inferior-tty-set seem to accept any number of
> arguments:
>
> (gdb)
> -inferior-tty-show asdf
> ^done
> (gdb)
>
> (gdb)
> -inferior-tty-set asdf qwert
> ^done
> (gdb)

These we need to rediscuss whether to have at all - I'm still inclined
to yes, you're still inclined to no, I haven't had time to sit down and
write about it.

> With mi_cmd_inferior_tty_set there is no test. mi_cmd_inferior_tty_show
> uses mi_valid_noargs which returns 1 even with arguments (mi_getopt
> only returns something other than -1 if it finds an option i.e an argument
> starting with `-').
>
> Since mi_cmd_file_list_exec_source_file and mi_cmd_file_list_exec_source_files
> also use mi_valid_noargs, their associated MI commands also accept any number
> of arguments.

Ouch. That definitely ought to be fixed...

--
Daniel Jacobowitz
CodeSourcery, LLC