Download kde-devel-gdb, some Qt 4 helper macros from the KDE subversion repository, and put this in your ~/.gdbinit: