public inbox for gdb-prs@sourceware.org help / color / mirror / Atom feed
From: "andre dot poenitz at nokia dot com" <sourceware-bugzilla@sourceware.org> To: gdb-prs@sourceware.org Subject: [Bug symtab/11198] New: Performance problem in find_minsym_and_objfile Date: Wed, 20 Jan 2010 16:10:00 -0000 [thread overview] Message-ID: <20100120161016.11198.andre.poenitz@nokia.com> (raw) Each time I step the first time into code belonging to some library like QtCore or QtGui, gdb goes to 100% CPU for 10-20 seconds. That time is spent almost entirely in find_minsym_and_objfile (char *name, struct objfile **objfile_p) in glibc-tdep.c. The change below removes the delay and does not seem to have ill side-effects for me. --- glibc-tdep.c.orig 2010-01-20 16:00:22.000000000 +0100 +++ glibc-tdep.c 2010-01-20 17:04:41.000000000 +0100 @@ -41,15 +41,12 @@ ALL_OBJFILES (objfile) { struct minimal_symbol *msym; - ALL_OBJFILE_MSYMBOLS (objfile, msym) - { - if (SYMBOL_LINKAGE_NAME (msym) - && strcmp (SYMBOL_LINKAGE_NAME (msym), name) == 0) - { + msym = lookup_minimal_symbol (name, NULL, objfile); + if ( msym ) + { *objfile_p = objfile; return msym; - } - } + } } -- Summary: Performance problem in find_minsym_and_objfile Product: gdb Version: 7.0 Status: UNCONFIRMED Severity: normal Priority: P2 Component: symtab AssignedTo: unassigned at sourceware dot org ReportedBy: andre dot poenitz at nokia dot com CC: gdb-prs at sourceware dot org GCC build triplet: i486-linux-gnu GCC host triplet: i486-linux-gnu GCC target triplet: i486-linux-gnu http://sourceware.org/bugzilla/show_bug.cgi?id=11198 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
next reply other threads:[~2010-01-20 16:10 UTC|newest] Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top 2010-01-20 16:10 andre dot poenitz at nokia dot com [this message] 2010-01-20 16:11 ` [Bug symtab/11198] " tromey at redhat dot com 2010-01-20 19:00 ` tromey at redhat dot com 2010-01-21 14:45 ` andre dot poenitz at nokia dot com 2010-01-21 17:12 ` cvs-commit at gcc dot gnu dot org 2010-01-21 17:15 ` tromey at redhat dot com
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20100120161016.11198.andre.poenitz@nokia.com \ --to=sourceware-bugzilla@sourceware.org \ --cc=gdb-prs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).