This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: -inferior-tty-show and -inferior-tty-set
- From: Daniel Jacobowitz <drow at false dot org>
- To: Nick Roberts <nickrob at snap dot net dot nz>
- Cc: gdb at sources dot redhat dot com
- Date: Tue, 12 Jul 2005 23:58:57 -0400
- Subject: Re: -inferior-tty-show and -inferior-tty-set
- References: <17108.33601.794016.525239@farnswood.snap.net.nz>
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