From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16413 invoked by alias); 13 Jul 2005 02:57:01 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 16400 invoked by uid 22791); 13 Jul 2005 02:56:58 -0000 Received: from viper.snap.net.nz (HELO viper.snap.net.nz) (202.37.101.8) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Wed, 13 Jul 2005 02:56:58 +0000 Received: from farnswood.snap.net.nz (p152-tnt1.snap.net.nz [202.124.110.152]) by viper.snap.net.nz (Postfix) with ESMTP id BF08E555224 for ; Wed, 13 Jul 2005 14:56:55 +1200 (NZST) Received: by farnswood.snap.net.nz (Postfix, from userid 501) id C37DC62A99; Wed, 13 Jul 2005 03:58:11 +0100 (BST) From: Nick Roberts MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17108.33601.794016.525239@farnswood.snap.net.nz> Date: Wed, 13 Jul 2005 02:57:00 -0000 To: gdb@sources.redhat.com Subject: -inferior-tty-show and -inferior-tty-set X-SW-Source: 2005-07/txt/msg00142.txt.bz2 -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