This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
-inferior-tty-show and -inferior-tty-set
- From: Nick Roberts <nickrob at snap dot net dot nz>
- To: gdb at sources dot redhat dot com
- Date: Wed, 13 Jul 2005 14:58:09 +1200
- Subject: -inferior-tty-show and -inferior-tty-set
-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)
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.
Nick