From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 576 invoked by alias); 5 Oct 2009 08:00:22 -0000 Received: (qmail 553 invoked by uid 22791); 5 Oct 2009 08:00:20 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail-bw0-f208.google.com (HELO mail-bw0-f208.google.com) (209.85.218.208) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 05 Oct 2009 08:00:13 +0000 Received: by bwz4 with SMTP id 4so2316579bwz.24 for ; Mon, 05 Oct 2009 01:00:10 -0700 (PDT) MIME-Version: 1.0 Received: by 10.103.127.34 with SMTP id e34mr2087512mun.108.1254729610469; Mon, 05 Oct 2009 01:00:10 -0700 (PDT) In-Reply-To: <19143.59472.547182.54020@totara.tehura.co.nz> References: <8ba6bed40910021037q16276bb7w83ec3a5f20e2cbd1@mail.gmail.com> <19142.34895.136190.624637@totara.tehura.co.nz> <8ba6bed40910031159v6508a55ap4fd02b253c599794@mail.gmail.com> <19143.59472.547182.54020@totara.tehura.co.nz> Date: Mon, 05 Oct 2009 08:00:00 -0000 Message-ID: <8ba6bed40910050100y241537a5od4346aafd5168c9f@mail.gmail.com> Subject: Re: [patch/rfc] mi interpreter-complete enh req 8058. From: Matt Rice To: Nick Roberts Cc: tromey@redhat.com, gdb-patches@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes 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 X-SW-Source: 2009-10/txt/msg00106.txt.bz2 On Sat, Oct 3, 2009 at 5:12 PM, Nick Roberts wrote: > =A0> Thanks, I had missed this CLI command somehow, it will work for now, > =A0> ideally i would like it not to be going directly to stdout like that > =A0> output infers, I guess i could change the output filehandle, when > =A0> executing this command until it finishes, > > I'm not sure what you mean. =A0Everything goes to stdout but you can > eliminate the LOG-STREAM-OUTPUT (prefixed by `&') by using > -interpreter-exec: > > (gdb) > -interpreter-exec console "complete b ma" > ~"b main\n" > ~"b malloc\n" > ~"b malloc@plt\n" > ^done > (gdb) > I meant the ~"b main\n" etc, "~" string-output The console output stream contains text that should be displayed in the CLI console window. It contains the textual responses to CLI commands. I would like this output not to go to the CLI console window, but to a new window or a new tab, which switches back to the console window upon hitting 'enter', but is also a list control,allowing you to select the tab completion result with the mouse or entering it by hand, using the complete CLI command means monkeying around at the MI parser level, parsing the string output based on the command executed. anyhow, complete CLI command will suffice for now. > =A0> so that the output history > =A0> isn't filled with this temporal information which always bothers me.= .. > > You can use the server prefix to suppress commands being entered into > the command history. ahh, sorry i didn't mean that history, I meant the 'CLI console output stream', but noted. > =A0> additionally its worth noting the patch screws this output up. > > Does that not show up in the testsuite? no, it looks like additional unwanted output when executing the complete command, the output being tested for is still there so the tests still pass i gather. > What front end are you working on? one which doesn't really have any tangible existence I just saw this on the bugzilla, and taking a break from other patches... initially trying to do a faithful reproduction of the CLI, then then augmenting it with some gui stuff, but mainly keeping the console roots, no built in editor or fancy stuff.