The latest version of Qt installs gdb version 7.1. This one has an annoying error: it evaluates some quite correct expressions as <unavailable synchronous data> . Apparently this was fixed in gdb version 7.2, so I downloaded the last gdb.exe file and copied it to Qt\pythongdb\gdb-i686-pc-mingw32.exe . Alas, this was not successful: enumerations were rated as <anonymous enum> instead of (say) myHelpfulEnumVal , and (void*)p was rated as void* instead of (say) cbf56e0 . Therefore, I returned to gdb version 7.1.
Does anyone know what else I need to do to integrate gdb 7.2 with Qt Creator? Or is it just not yet implemented?
I am using minGW under Windows 7.
Update I did as Stephen Chu suggests, and now I'm using Qt Creator 2.2 with gdb 7.2. It seems to be working fine. But I needed to figure out how to tell Qt Creator where to find gdb, because the way to do this has changed: go to Tools -> Options -> Tool Chains . You should see (at least I, using mingw on Windows) the Auto-detected and Manual list. The Manual list contains one element:
MinGW from Simulator Qt for MinGW 4.4 (Qt SDK)
Click on this and you can enter the path to gdb in the Debugger: field. In my case it is
C:\Qt\qtcreator-2.1.81\pythongdb\gdb-i686-pc-mingw32.exe
NTN
qt gdb
Tonyk
source share