From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31864 invoked by alias); 11 Jul 2005 02:13:58 -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 31851 invoked by uid 22791); 11 Jul 2005 02:13:55 -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; Mon, 11 Jul 2005 02:13:55 +0000 Received: from farnswood.snap.net.nz (p146-tnt2.snap.net.nz [202.124.108.146]) by viper.snap.net.nz (Postfix) with ESMTP id 9C7795E3039 for ; Mon, 11 Jul 2005 14:12:49 +1200 (NZST) Received: by farnswood.snap.net.nz (Postfix, from userid 501) id BB50E62A99; Mon, 11 Jul 2005 03:13:57 +0100 (BST) From: Nick Roberts MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17105.54757.46681.109597@farnswood.snap.net.nz> Date: Mon, 11 Jul 2005 02:13:00 -0000 To: gdb@sources.redhat.com Subject: show inferior-tty X-SW-Source: 2005-07/txt/msg00094.txt.bz2 Firstly a doc error (GDB/MI -inferior-tty-show): The corresponding GDB command is `show inferior-tty /dev/pts/1'. should presumably read: The corresponding GDB command is `show inferior-tty'. Secondly, if I don't set the tty, I get: (gdb) show inferior-tty Terminal for future runs of program being debugged is "". I think that it should still display a value. Also perhaps it could just say e.g Terminal for future runs is "/dev/pts/1". I don't know why the terminal name has to be quoted, but I see that this practice is sometimes used for other show commands With MI, if I don't set the tty, I get: (gdb) -inferior-tty-show ^done (gdb) Even if its still considered inappropriate to give a value in this case, I think it should give a value e.g. (gdb) -inferior-tty-show ^done,inferior_tty_terminal="" (gdb) Incidentally, I don't see the need for this MI command or -inferior-tty-set because: (gdb) -gdb-set inferior-tty /dev/pts/1 ^done (gdb) -gdb-show inferior-tty ^done,value="/dev/pts/1" (gdb) Nick