From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24551 invoked by alias); 13 Feb 2009 21:13:30 -0000 Received: (qmail 24543 invoked by uid 22791); 13 Feb 2009 21:13:30 -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-gx0-f179.google.com (HELO mail-gx0-f179.google.com) (209.85.217.179) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 13 Feb 2009 21:13:13 +0000 Received: by gxk27 with SMTP id 27so1245252gxk.0 for ; Fri, 13 Feb 2009 13:13:11 -0800 (PST) MIME-Version: 1.0 Received: by 10.65.115.6 with SMTP id s6mr1228160qbm.73.1234559591396; Fri, 13 Feb 2009 13:13:11 -0800 (PST) In-Reply-To: <6D19CA8D71C89C43A057926FE0D4ADAA06EEF4A9@ecamlmw720.eamcs.ericsson.se> References: <6D19CA8D71C89C43A057926FE0D4ADAA06EEF4A9@ecamlmw720.eamcs.ericsson.se> Date: Fri, 13 Feb 2009 21:13:00 -0000 Message-ID: Subject: Re: Trouble with GDB/MI output From: Uri Moszkowicz To: Marc Khouzam Cc: gdb@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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: 2009-02/txt/msg00114.txt.bz2 Hi Marc, Yes I have but it doesn't make a difference - the output still goes to my terminal and not to the file where GDB output is going. Thanks, Uri On Fri, Feb 13, 2009 at 4:05 PM, Marc Khouzam wrote: > > >> -----Original Message----- >> From: gdb-owner@sourceware.org >> [mailto:gdb-owner@sourceware.org] On Behalf Of Uri Moszkowicz >> Sent: Friday, February 13, 2009 4:01 PM >> To: gdb@sourceware.org >> Subject: Trouble with GDB/MI output >> >> Hi guys, >> I sent an email yesterday but it doesn't appear to have made it to the >> list so if you are getting it twice I apologize. Anyway, I'm having >> trouble with GDB/mi and hope that you can help. I'm using the CPAN >> module Devel::GDB to control GDB through the GDB/mi interface and I >> can't get the output of my program to end up in a file merged with the >> GDB output. I can get them to go to separate files or to my screen. >> The funny thing is the program output seems to go straight to my >> terminal, making redirection useless. I get this warning: >> >> &"warning: GDB: Failed to set controlling terminal: Operation >> not permitted\n" >> >> Any idea what's going on? > > > Have you tried the MI command > -inferior-tty-set /dev/pts/ > this is how I get to choose where my program prints. > > Marc >