This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
RE: Trouble with GDB/MI output
- From: "Marc Khouzam" <marc dot khouzam at ericsson dot com>
- To: "Uri Moszkowicz" <uri at 4refs dot com>, <gdb at sourceware dot org>
- Date: Fri, 13 Feb 2009 16:05:21 -0500
- Subject: RE: Trouble with GDB/MI output
- References: <f32f8f30902121303t2ad069c6v98728041f57e607b@mail.gmail.com> <f32f8f30902131301m388c8205sb7a900f9c75c3790@mail.gmail.com>
> -----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/<somenumber>
this is how I get to choose where my program prints.
Marc