[Interest] Debugging into Qt sources under ubuntu

Etienne Sandré-Chardonnal etienne.sandre at m4x.org
Mon Nov 9 10:31:10 CET 2015


Hi,

In order to understand a complex bug, I'm trying tu step into Qt sources
when debugging with Qt Creator under ubuntu.

As I'm using the ubuntu package for Qt5 libs, I also installed the
debugging symbols (qt5base-sbg) and the sources with apt-get source.

GDB under Qt creator seem to find the debugging symbols (it says so in
stack trace tooltips) but does not find the sources.

Documentation says to add a source path redirect in debugger configuration.
When I click "Add Qt Sources" it automatically sets the source path to
"/var/tmp/qt-src", and I set the target to the place I installed the qt
sources, but this still does not work.

1) Is "/var/tmp/qt-src" the correct source path?
2) Is the target path the folder where I installed the sources with
apt-source? I also tried with the src subfolder but it still does not work.


This is what GDB reports :

>~"0x00007ffff6716541 in QObject::~QObject (this=<optimized out>,
__in_chrg=<optimized out>) at kernel/qobject.cpp:993\n"

>&"993\tkernel/qobject.cpp: No such file or directory.\n"



Thanks,


Etienne
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20151109/6d67533b/attachment.html>


More information about the Interest mailing list