sebastienchrist
Posts: 13
Joined: Thu Apr 03, 2014 4:47 pm

Warning GBD Failed

Mon Oct 03, 2016 3:36 pm

Hello,
I work with netbeans in remote to my RPI.
But from any days, I become the message:
"warning: GDB: Failed to set controlling terminal: Operation not permitted\n"

And I can't no more debug my programm.

Have you an idea ?

Thanks

User avatar
Paeryn
Posts: 2986
Joined: Wed Nov 23, 2011 1:10 am
Location: Sheffield, England

Re: Warning GBD Failed

Mon Oct 03, 2016 5:09 pm

I have no idea with how netbeans works, but you generally get that warning when gdb is told to redirect the input/output of your program to another terminal. It's just a warning because gdb asks for the terminal to be the controlling terminal and more than likely it is already a controlling terminal for another process and so is being refused. It shouldn't cause debugging to fail though (some things won't work as expected, like signals from the terminal won't go to your program).
She who travels light — forgot something.

sebastienchrist
Posts: 13
Joined: Thu Apr 03, 2014 4:47 pm

Re: Warning GBD Failed

Wed Oct 05, 2016 5:43 am

Ok.
Thank you. I understand that the warning is not a problem.
But my proble is that I cant debug my programm.
The progran start when I start debug but did not sopt on the breakpoint.
Best regards

sebastienchrist
Posts: 13
Joined: Thu Apr 03, 2014 4:47 pm

Re: Warning GBD Failed

Wed Oct 05, 2016 6:16 am

Ooops,
I did something bad.
I've "active configuration" set to release.

I change to debug, and the debug run fine.

Sorry.
Thanks for your help

Return to “C/C++”