From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10792 invoked by alias); 3 Jul 2014 10:22:43 -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 10737 invoked by uid 89); 3 Jul 2014 10:22:40 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 X-HELO: na01-by2-obe.outbound.protection.outlook.com Received: from mail-by2lp0237.outbound.protection.outlook.com (HELO na01-by2-obe.outbound.protection.outlook.com) (207.46.163.237) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Thu, 03 Jul 2014 10:22:37 +0000 Received: from BLUPR03MB136.namprd03.prod.outlook.com (10.255.212.27) by BLUPR03MB136.namprd03.prod.outlook.com (10.255.212.27) with Microsoft SMTP Server (TLS) id 15.0.974.11; Thu, 3 Jul 2014 10:22:34 +0000 Received: from BLUPR03MB136.namprd03.prod.outlook.com ([169.254.1.183]) by BLUPR03MB136.namprd03.prod.outlook.com ([169.254.1.183]) with mapi id 15.00.0974.002; Thu, 3 Jul 2014 10:22:34 +0000 From: Adrian Sendroiu To: "gdb@sourceware.org" Subject: Output stream for monitor commands Date: Thu, 03 Jul 2014 10:22:00 -0000 Message-ID: <38d02cf918ba47d0a408ab5cc17bf45c@BLUPR03MB136.namprd03.prod.outlook.com> x-microsoft-antispam: BCL:0;PCL:0;RULEID: x-forefront-prvs: 0261CCEEDF x-forefront-antispam-report: SFV:NSPM;SFS:(6009001)(164054003)(199002)(189002)(54356999)(20776003)(105586002)(81342001)(99396002)(50986999)(21056001)(81542001)(86362001)(66066001)(85806002)(80022001)(92566001)(31966008)(74662001)(83072002)(229853001)(2351001)(106356001)(107886001)(64706001)(85852003)(2656002)(87936001)(107046002)(95666004)(99286002)(79102001)(77982001)(74502001)(77096002)(83322001)(76482001)(33646001)(85306003)(76576001)(74316001)(101416001)(46102001)(108616002)(24736002);DIR:OUT;SFP:;SCL:1;SRVR:BLUPR03MB136;H:BLUPR03MB136.namprd03.prod.outlook.com;FPR:;MLV:sfv;PTR:InfoNoRecords;MX:1;LANG:en; Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: freescale.com X-SW-Source: 2014-07/txt/msg00007.txt.bz2 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 the qRcmd packet's= response uses the gdb_stdtarg stream while the others use gdb_stdout. This might come as an issue, because, from the user's point of view, "monit= or" is just another command, and it would be expected to see its output tog= ether with the output of the other commands. Do you think it's right to ass= ume so? Do you have any suggestions about how this could be fixed? I was th= inking that maybe I could implement a gdb command to redirect gdb_stdtarg t= o gdb_stdout, so that the current behaviour is also preserved. Thanks, Adrian