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:
- Check for the latest
gdb-*.tar.gz file here, and adapt the commands below if necessary.
tar xvfz gdb-7.6.2.tar.gz
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