public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* -inferior-tty-show and -inferior-tty-set
@ 2005-07-13  2:57 Nick Roberts
  2005-07-13  3:59 ` Daniel Jacobowitz
  2005-07-13 22:46 ` Bob Rossi
  0 siblings, 2 replies; 6+ messages in thread
From: Nick Roberts @ 2005-07-13  2:57 UTC (permalink / raw)
  To: gdb


-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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2005-07-14  6:36 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-13  2:57 -inferior-tty-show and -inferior-tty-set Nick Roberts
2005-07-13  3:59 ` Daniel Jacobowitz
2005-07-13 22:46 ` Bob Rossi
2005-07-13 22:55   ` Nick Roberts
2005-07-13 23:39     ` Bob Rossi
2005-07-14  6:36       ` Nick Roberts

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).