This is the mail archive of the gdb@sources.redhat.com 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]

-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


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