[Qt-creator] Very slow GDB when stepping into functions
Peter Kümmel
syntheticpp at gmx.net
Fri Feb 5 20:29:38 CET 2010
Am Donnerstag, den 04.02.2010, 19:19 +0100 schrieb Andre Poenitz:
> On Thu, Feb 04, 2010 at 06:36:21PM +0100, Peter Kümmel wrote:
> > Maybe someone also wonders why stepping into a function
> > takes several tens of seconds at 100% CPU usage of gdb.
> > Here's the answer for Debian based systems:
> >
> > "Debugging symbols for ld.so are not shipped"
> > http://blogs.gnome.org/jjongsma/2007/01/08/gdb-slowness/
> >
> > Therefore this:
> > sudo apt-get install libc6-dbg
> > solves the problems on my Ubuntu machine.
> >
> > Could someone please update the QtCreator Wiki:
> > http://qt.gitorious.org/qt-creator/pages/FrequentlyAskedQuestions#Debugger
>
> That's interesting as I recently looked into a similar problem and
> tracked it down to the use of the wrong algorithm for symbol lookup, see
> http://sourceware.org/bugzilla/show_bug.cgi?id=11198 .
This fix improves things, but installing libc5-dbg is still better,
see may last mail.
>
> This particular issue has been fixed in the mean time in gdb.
>
> I wonder whether our problems are related, and if so, how such
> completely different solutions can be possible.
>
> Could you do me a favour and check whether uninstalling the libc6-dbg
> package and using a recent gdb from CVS also fixes your problem?
>
> Andre'
>
> PS: Of course we can add the hint to the FAQ.
Thanks, it works also on other Debian based system. But your comment
that it related to the mentioned bug is not 100% correct.
Is it possible to debug gdb with qtcreater? How do I have to rebuild
gdb?
Peter
More information about the Qt-creator-old
mailing list