From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 114539 invoked by alias); 21 Mar 2016 16:51:25 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 114526 invoked by uid 89); 21 Mar 2016 16:51:25 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=eli, Hx-languages-length:1193, bidirectional, bidi X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Mon, 21 Mar 2016 16:51:24 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (Postfix) with ESMTPS id CBCD08F504; Mon, 21 Mar 2016 16:51:22 +0000 (UTC) Received: from [127.0.0.1] (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u2LGpLd7030000; Mon, 21 Mar 2016 12:51:22 -0400 Subject: Re: [PATCH v2 24/25] Add new command to create extra console/mi UI channels To: Eli Zaretskii References: <1458573675-15478-1-git-send-email-palves@redhat.com> <1458573675-15478-25-git-send-email-palves@redhat.com> <83twjz6bex.fsf@gnu.org> Cc: gdb-patches@sourceware.org From: Pedro Alves Message-ID: <56F02689.2050503@redhat.com> Date: Mon, 21 Mar 2016 16:51:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: <83twjz6bex.fsf@gnu.org> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-SW-Source: 2016-03/txt/msg00416.txt.bz2 Hi Eli, On 03/21/2016 04:30 PM, Eli Zaretskii wrote: >> From: Pedro Alves >> Date: Mon, 21 Mar 2016 15:21:14 +0000 >> >> With all the previous plumbing in place, it's now easy to add a >> command that actually creates a new console/mi UI. > > Shouldn't this (and other related) code be conditional of PTYs being > supported? Otherwise, this is just useless baggage, right? Actually this should all work on Windows too, for example. MI doesn't really need a PTY, so even though currently the command's online help and git logs say usage is "new-ui INTERP TTY", that TTY part could actually be the name of any bidirectional stream. E.g., it could be a bidi unix domain socket, on Linux, or on Windows, I think it should work to pass a console name, or a bidirectional named pipe path, though I haven't tried it. If necessary, it would also be easy to extend the command to support separate streams for in/out/err, like, e.g.: (gdb) new-ui INTERP IN OUT ERR And then it'd be possible to open a new MI channel through unidirectional named pipes, regular files, etc. too. Thanks, Pedro Alves