Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* gdb symbol lookup very slow
@ 2014-05-28  8:56 Antonio Cavallo
  2014-05-28 22:43 ` Andrew Burgess
  2014-05-29 20:40 ` Jan Kratochvil
  0 siblings, 2 replies; 4+ messages in thread
From: Antonio Cavallo @ 2014-05-28  8:56 UTC (permalink / raw)
  To: gdb

Hi,
I'm having hard time debugging a (very large) C++ library under gdb (gdb 
7.7.1, gcc 4.8, binutils 2.22).

The main issue is the time it takes to reach a breakpoint: gdb takes an 
insane amount of time (order of 2mins) vs vs2012 (a couple of seconds).

I've profiled gdb and the top functions called during the debugging are 
(more than 90% is spent in these):

   strcmp_iw
   find_pc_sect_psymtab
   symbol_get_demangled_name
   symbol_search_name

I suspect gdb doesn't cache the symbols: is there any way to speedup 
this lookup? Is there any other explanation for why gdb is so much 
slower than visual studio?

I've repeated the run with lldb (from svn), and it is at least two times 
faster than gdb.

Any suggestion where to look for?

Thanks


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-05-29 19:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-28  8:56 gdb symbol lookup very slow Antonio Cavallo
2014-05-28 22:43 ` Andrew Burgess
2014-05-29  2:48   ` Antonio Cavallo
2014-05-29 20:40 ` Jan Kratochvil

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox