From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29541 invoked by alias); 3 Jul 2014 13:48:42 -0000 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 Received: (qmail 29520 invoked by uid 89); 3 Jul 2014 13:48:38 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL,BAYES_00,SPF_PASS autolearn=ham version=3.3.2 X-HELO: usevmg20.ericsson.net Received: from usevmg20.ericsson.net (HELO usevmg20.ericsson.net) (198.24.6.45) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Thu, 03 Jul 2014 13:48:35 +0000 Received: from EUSAAHC007.ericsson.se (Unknown_Domain [147.117.188.93]) by usevmg20.ericsson.net (Symantec Mail Security) with SMTP id 39.EA.05330.04D05B35; Thu, 3 Jul 2014 09:58:56 +0200 (CEST) Received: from EUSAAMB103.ericsson.se ([147.117.188.120]) by EUSAAHC007.ericsson.se ([147.117.188.93]) with mapi id 14.03.0174.001; Thu, 3 Jul 2014 09:48:31 -0400 From: Marc Khouzam To: "'lgustavo@codesourcery.com'" , "'Adrian Sendroiu'" , "'gdb@sourceware.org'" Subject: RE: Output stream for monitor commands Date: Thu, 03 Jul 2014 13:48:00 -0000 Message-ID: References: <38d02cf918ba47d0a408ab5cc17bf45c@BLUPR03MB136.namprd03.prod.outlook.com> <53B5349C.3020005@codesourcery.com> In-Reply-To: <53B5349C.3020005@codesourcery.com> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-IsSubscribed: yes X-SW-Source: 2014-07/txt/msg00009.txt.bz2 > -----Original Message----- > From: gdb-owner@sourceware.org [mailto:gdb-owner@sourceware.org] On > Behalf Of Luis Machado > Sent: Thursday, July 03, 2014 6:47 AM > To: Adrian Sendroiu; gdb@sourceware.org > Subject: Re: Output stream for monitor commands >=20 > On 07/03/2014 11:22 AM, Adrian Sendroiu wrote: > > Hello, > > > > When running gdb inside the Eclipse environment, I noticed that the > output of the monitor commands goes to the "gdb traces" window, as > opposed to all others that go to the "gdb" window. This happens because t= he > qRcmd packet's response uses the gdb_stdtarg stream while the others use > gdb_stdout. [...] =20 > There seems to be an ongoing discussion at > https://bugs.eclipse.org/bugs/show_bug.cgi?id=3D208950. Yes, we are struggling with how to handle the target-stream (prefixed with = @). Currently, from what we understand, GDB does not differentiate between output from the target (like the result to a monitor command) and output from the inferior. This was directing us to print all target-stream output to the eclipse gdb console, just like when you run gdb from the command-lin= e. However, this is apparently quite confusing when you have to also handle input from the inferior and from gdb. (This may be a non-stop issue only and I'm waiting on an answer to that). The solution that is currently being proposed is to have an inferior=20 console in eclipse in which we would print target-stream output and handle input to the inferior, and pay special attention to results of monitor comm= ands which would be sent to the gdb console instead. I'm not a fan of this solu= tion which specifically focuses on the monitor command as an exception. If anyone has some information on how the target-stream (@) is meant to be used by a front-end, it may clarify our discussion. Thanks Marc