Adding Qt to gdb without QtCreator



  • Hi,

    I need to debug Qt applications in an CLI debug environment outside of QtCreator - hosted on Mac OS X, but with a custom GDB 7.x (probably Python-enabled).

    I would love to have enhanced support for QStrings, QObjects et al. Can anybody give me an hint where to look how QtCreator integrates the Python based gdb enhancements and the gdb C++ addons (on Mac OS X)?

    So far I looked at http://doc.qt.nokia.com/qtcreator-2.3/creator-debugging-helpers.html and tried the KDE .gdbinit script.

    TNX!

    [EDIT: fixed link, Volker]



  • [Apple's gdb is a more robust choice even if it has no support python.] Anyway, for "deep inspection" of QObjects (i.e. evaluate properties, etc) Qt Creator is about the only choice I am aware of, for simpler types like QStrings http://websvn.kde.org/checkout/trunk/KDE/kdesdk/scripts/kde-devel-gdb does the trick, too. You could try to get a gdbserver up int the "CLI environment" and start Qt Creator on a machine with a GUI and a suitable cross-gdb.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.