Code::Blocks - warning: GDB: Failed to set controlling terminal: Operation not permitted
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.
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.