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

Lebesgue picture Lebesgue · Mar 23, 2015 · Viewed 10.6k times · Source

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.

Answer

Tom Tromey picture Tom Tromey · Mar 26, 2015

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.