Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Code::Blocks - warning: GDB: Failed to set controlling terminal: Operation not permitted

I've installed Code::Blocks 13.12 in Ubuntu 14.04 through official repositories. When I compile, everything goes OK. But when I debug, the following message is shown at the shell:

warning: GDB: Failed to set controlling terminal: Operation not permitted

And the program is executed up to the breaking point, but nothing more is shown when I execute the next lines.

How to fix this?

PD: I've installed the latest version of GDB (the one which is in repositories). I've also tried to use the linux terminal instead of the one Codeblocks shows.

like image 675
Lebesgue Avatar asked Mar 23 '15 20:03

Lebesgue


2 Answers

I think this just means that code::blocks is running gdb in "CLI" mode without making a pseudo-terminal. So, when gdb tries terminal operations, they fail. You can just ignore these messages.

like image 184
Tom Tromey Avatar answered Sep 19 '22 19:09

Tom Tromey


Heh, this problem still exists in 2020...

I've installed Code::Blocks 1.6 on clear CentOS 7 installation and got the same messages and behavior.

For me, this is solved by disabling SELinux which prevented IDE from using debugger.

like image 41
Encyclica Avatar answered Sep 17 '22 19:09

Encyclica