From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10026 invoked by alias); 19 Feb 2009 22:07:04 -0000 Received: (qmail 10017 invoked by uid 22791); 19 Feb 2009 22:07:03 -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; Thu, 19 Feb 2009 22:06:58 +0000 Received: by gxk27 with SMTP id 27so1835100gxk.0 for ; Thu, 19 Feb 2009 14:06:56 -0800 (PST) MIME-Version: 1.0 Received: by 10.231.19.70 with SMTP id z6mr60226iba.32.1235081215854; Thu, 19 Feb 2009 14:06:55 -0800 (PST) In-Reply-To: <18839.10838.548086.793672@kahikatea.snap.net.nz> References: <18839.10838.548086.793672@kahikatea.snap.net.nz> Date: Thu, 19 Feb 2009 22:07:00 -0000 Message-ID: Subject: Re: Trouble with GDB/MI output From: Uri Moszkowicz To: Nick Roberts 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/msg00133.txt.bz2 Hi Nick, Yes I'm sorry that I forgot to mention that. I was using 6.8.50.20090119. I quickly browsed through commit messages since then and didn't see anything relevant. I just tried the newest version (6.8.50.20090217) anyway and the problem still exists. Setting inferior-tty to /dev/stdout results in the output going nowhere. Setting it to /dev/pts/21 (from "tty") bypasses the file redirect. Not sure how "inferior-tty" would help me. Thanks, Uri On Sat, Feb 14, 2009 at 3:32 PM, Nick Roberts wrote: > > 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" > > Thiago Bauermann fixed a bug in GDB, just after the release of 6.8, to allow > GDB to set the controlling terminal of the inferior. You don't say what > version of GDB you are using but, assuming it's 6.8 or earlier, you could try > GDB in the CVS repository (or a snapshot) to see if that works with your CPAN > module. > > -- > Nick http://www.inet.net.nz/~nickrob >