From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 122695 invoked by alias); 26 Jul 2016 19:22:51 -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 122679 invoked by uid 89); 26 Jul 2016 19:22:50 -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,SPF_PASS autolearn=ham version=3.3.2 spammy=HAccept-Language:en-CA, H*r:Symantec, H*M:ericsson, H*r:Unknown_Domain X-HELO: usplmg21.ericsson.net Received: from usplmg21.ericsson.net (HELO usplmg21.ericsson.net) (198.24.6.65) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Tue, 26 Jul 2016 19:22:40 +0000 Received: from EUSAAHC001.ericsson.se (Unknown_Domain [147.117.188.75]) by (Symantec Mail Security) with SMTP id 57.29.04496.A78B7975; Tue, 26 Jul 2016 21:22:38 +0200 (CEST) Received: from EUSAAMB103.ericsson.se ([147.117.188.120]) by EUSAAHC001.ericsson.se ([147.117.188.75]) with mapi id 14.03.0301.000; Tue, 26 Jul 2016 15:22:35 -0400 From: Marc Khouzam To: Bob Rossi CC: Simon Marchi , Pedro Alves , "gdb@sourceware.org" Subject: RE: Is there a way to unset inferior-tty? Date: Tue, 26 Jul 2016 19:22:00 -0000 Message-ID: References: <302246af-a394-4a76-5223-5cac924bda9a@redhat.com> <9560791fd070c79f7ab54e5e7b63d433@simark.ca> ,<20160726184303.GB989@xubuntu.brasko.net> In-Reply-To: <20160726184303.GB989@xubuntu.brasko.net> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-IsSubscribed: yes X-SW-Source: 2016-07/txt/msg00030.txt.bz2 > On Sat, Jul 02, 2016 at 02:04:39PM +0000, Marc Khouzam wrote: > > > > I think this should just be fixed to work. > > > > > > > > The fix should be very similar to this: > > > > > > > > > > > > https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D811a= 659a779fdf93293fe1105d99e9db171a8b68 > > > > > > > > Thanks, > > > > Pedro Alves > > > > > > Hi Marc, > > > > > > Here's a patch. If you like it I'll submit it to gdb-patches with > > > ChangeLog and all. > > > > Thanks! Might as well submit it. > > > > In the end I moved to a more complete solution for eclipse. Right > > after an inferior starts, eclipse will reset the tty to a new and > > valid value; that way, if the user does a 'run', the tty will already > > be properly set _and_ will direct inferior output to a valid eclipse > > console. >=20 > I do the same thing in CGDB. Great, that helps confirm this is a good approach. Do you handle the output of a second inferior? If the user does 'add-inferior' and then runs it, I was planning on redirecting that new output to a new Eclipse console. This is causing me some trouble though because when the new inferior starts, I don't know if it was due to a 'run' or=20 an 'attach', so I'm not sure if I should be expecting some output or not. Have you seen this too? Thanks