From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2278 invoked by alias); 6 Dec 2010 18:40:24 -0000 Received: (qmail 2269 invoked by uid 22791); 6 Dec 2010 18:40:23 -0000 X-SWARE-Spam-Status: No, hits=-6.2 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 06 Dec 2010 18:40:18 +0000 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id oB6IeEVi008451 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 6 Dec 2010 13:40:14 -0500 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id oB6IeDav010324; Mon, 6 Dec 2010 13:40:14 -0500 Received: from opsy.redhat.com (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id oB6IeDee010457; Mon, 6 Dec 2010 13:40:13 -0500 Received: by opsy.redhat.com (Postfix, from userid 500) id D11E63780EF; Mon, 6 Dec 2010 11:40:12 -0700 (MST) From: Tom Tromey To: Jan Kratochvil Cc: Marc Khouzam , "'gdb\@sourceware.org'" Subject: Re: Using telnet to control a running GDB References: <20101129025627.GA4356@host0.dyn.jankratochvil.net> <20101129185524.GA13721@host0.dyn.jankratochvil.net> <20101129203906.GA18241@host0.dyn.jankratochvil.net> Date: Mon, 06 Dec 2010 18:40:00 -0000 In-Reply-To: <20101129203906.GA18241@host0.dyn.jankratochvil.net> (Jan Kratochvil's message of "Mon, 29 Nov 2010 21:39:06 +0100") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2010-12/txt/msg00018.txt.bz2 >>>>> "Jan" == Jan Kratochvil writes: Marc> If the console was outside eclipse (like the telnet session, Marc> I'm mentioning), eclipse may not be able to catch the commands Marc> from that telnet to be able to parse them, and would then Marc> fall out-of-sync with GDB. Jan> MI should rather notify changes done over MI when talking about Jan> some right way to do it. I don't think I understand that. It seems to me that if we want to support a GUI that also has a gdb-cli-like console, then commands entered at that console should report both MI and CLI output, so that the GUI can parse the MI notifications and update other parts of the user interface. I assume this doesn't work today, but I don't see why it couldn't be implemented. I suppose an alternate idea would be to only have MI output and require the GUI to format it into the console window itself. This seems somewhat less nice since it means duplicating the formatting code. Tom