16

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.

1

3 Answers 3

6

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.

Sign up to request clarification or add additional context in comments.

Comments

1

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.

Comments

-8

Add :

system("Pause")

and it will work

1 Comment

Please clarify. Add: system("Pause") to what.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.