[Qt-interest] Problem with debugging Qt4 app with KDevelop

Syam syamcr at gmail.com
Sun Feb 1 09:20:50 CET 2009


    I'm using KDevelop v3.5.4 (previously used 3.5.3, and same problems) to
develop a Qt (v4.4) application on RHEL 5.1. I'm having some issues with
debugging.
When I try to single step over any line which involves QString (or some
QString operation, indirectly), I get a 'Program received signal SIGTRAP'
error from GDB, and debugging stops. The interesting part is that if I set a
breakpoint on a line beyond that point and run, it successfully breaks at
the set breakpoint. i.e. the problem is only when single stepping / 'run to
curser'.
>From the frame-stack, the sigtrap seems to be from malloc in
/lib/ld-linux.so-2 (it also says: <function called from gdb>).

I tried creating another QCoreApplication (again, using KDevelop). I have a
different set of issues here. Single-stepping works, but the values in the
watch window are not updated. i.e. if I add a variable (QString, int etc.)
to the watch, it correctly shows the current value. But when I step through
the code, the values are not updated. If I again add the same variable to
the watch, the new value is displayed, but as a separate entry. The old
entry still stays at the same value.
I tried debugging the same application with KDbg and it works fine. I can
single step and the values are updated as expected. So I guess it's not a
problem with gdb.

I had confirmed the problem on two machines with these configurations (both
RHEL 5.1, 32-bit)
1. KDevelop 3.5.3 and gdb 6.8-23 (both RPMs built myself from Fedora srpms)
2. KDevelop 3.5.4 (built myself) and gdb 6.8-27 (official RHEL update)


I tried creating a simple Automake C++ project, and debugging works
flawlessly with KDevelop.

PS: If you've already seen this one, please excuse me. I had some confusions
with my mail setup and had sent this from the wrong accont.
And PLEASE respond to this mail (any reply), so that I can know if this
reached the list successfully.

-- 
Regards,

Syam
syamcr at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090201/6807bd96/attachment.html 


More information about the Qt-interest-old mailing list