I'm using Code-Blocks IDE in my Ubuntu 12.10.But when I'm trying to debug any project, I got the following warning:
warning: GDB: Failed to set controlling terminal: Operation not permitted
What should I do now ?
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.Sign up to join this community
I had the same Problem with Ubuntu 10.04, QTCreator 2.5.2 and gdb 7.1 coming with ubuntu.
I could solve my problems with an upgrade to the current version 7.5 of gdb and using this instead the 7.1 installed by ubuntu.
You can download the latest and compile it by yourself:
gdb-*.tar.gzfile here, and adapt the commands below if necessary.
wget http://ftp.gnu.org/gnu/gdb/gdb-7.6.2.tar.gz tar xvfz gdb-7.6.2.tar.gz cd gdb-7.6.2 ./configure make cp gdb/gdb /usr/local/bin
Take care about that the
/usr/local/bin is at the beginning of the PATH you are using while running QtCreator.
You can place the following line into your