* Trouble with GDB/MI output [not found] <f32f8f30902121303t2ad069c6v98728041f57e607b@mail.gmail.com> @ 2009-02-13 21:01 ` Uri Moszkowicz 2009-02-13 21:05 ` Marc Khouzam ` (2 more replies) 0 siblings, 3 replies; 6+ messages in thread From: Uri Moszkowicz @ 2009-02-13 21:01 UTC (permalink / raw) To: gdb 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? Thanks, Uri ^ permalink raw reply [flat|nested] 6+ messages in thread
* RE: Trouble with GDB/MI output 2009-02-13 21:01 ` Trouble with GDB/MI output Uri Moszkowicz @ 2009-02-13 21:05 ` Marc Khouzam 2009-02-13 21:13 ` Uri Moszkowicz 2009-02-14 9:03 ` Vladimir Prus 2009-02-14 20:32 ` Nick Roberts 2 siblings, 1 reply; 6+ messages in thread From: Marc Khouzam @ 2009-02-13 21:05 UTC (permalink / raw) To: Uri Moszkowicz, gdb > -----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 ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Trouble with GDB/MI output 2009-02-13 21:05 ` Marc Khouzam @ 2009-02-13 21:13 ` Uri Moszkowicz 0 siblings, 0 replies; 6+ messages in thread From: Uri Moszkowicz @ 2009-02-13 21:13 UTC (permalink / raw) To: Marc Khouzam; +Cc: gdb 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 <marc.khouzam@ericsson.com> 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/<somenumber> > this is how I get to choose where my program prints. > > Marc > ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Trouble with GDB/MI output 2009-02-13 21:01 ` Trouble with GDB/MI output Uri Moszkowicz 2009-02-13 21:05 ` Marc Khouzam @ 2009-02-14 9:03 ` Vladimir Prus 2009-02-14 20:32 ` Nick Roberts 2 siblings, 0 replies; 6+ messages in thread From: Vladimir Prus @ 2009-02-14 9:03 UTC (permalink / raw) To: gdb Uri Moszkowicz wrote: > 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? No. And honestly, you did not give any details to make it possible to guess anything. - Volodya ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Trouble with GDB/MI output 2009-02-13 21:01 ` Trouble with GDB/MI output Uri Moszkowicz 2009-02-13 21:05 ` Marc Khouzam 2009-02-14 9:03 ` Vladimir Prus @ 2009-02-14 20:32 ` Nick Roberts 2009-02-19 22:07 ` Uri Moszkowicz 2 siblings, 1 reply; 6+ messages in thread From: Nick Roberts @ 2009-02-14 20:32 UTC (permalink / raw) To: Uri Moszkowicz; +Cc: gdb > 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 ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Trouble with GDB/MI output 2009-02-14 20:32 ` Nick Roberts @ 2009-02-19 22:07 ` Uri Moszkowicz 0 siblings, 0 replies; 6+ messages in thread From: Uri Moszkowicz @ 2009-02-19 22:07 UTC (permalink / raw) To: Nick Roberts; +Cc: gdb 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 <nickrob@snap.net.nz> 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 > ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2009-02-19 22:07 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <f32f8f30902121303t2ad069c6v98728041f57e607b@mail.gmail.com>
2009-02-13 21:01 ` Trouble with GDB/MI output Uri Moszkowicz
2009-02-13 21:05 ` Marc Khouzam
2009-02-13 21:13 ` Uri Moszkowicz
2009-02-14 9:03 ` Vladimir Prus
2009-02-14 20:32 ` Nick Roberts
2009-02-19 22:07 ` Uri Moszkowicz
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox