public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
From: "csapuntz at gmail dot com" <sourceware-bugzilla@sourceware.org>
To: gdb-prs@sourceware.org
Subject: [Bug c++/15454] unusably slow resolving type names in C++ program with multiple namespace / lots of base classes
Date: Fri, 10 May 2013 05:49:00 -0000	[thread overview]
Message-ID: <bug-15454-4717-DDNj9TAHG6@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-15454-4717@http.sourceware.org/bugzilla/>

http://sourceware.org/bugzilla/show_bug.cgi?id=15454

--- Comment #1 from Costa Sapuntzakis <csapuntz at gmail dot com> 2013-05-10 05:49:16 UTC ---
The following diff works around the problem for me by disabling lookup in base
classes:

--- gdb-7.6~20130417/gdb/cp-namespace.c 2013-03-18 02:20:02.000000000 -0700
+++ gdb-7.6-mine/gdb/cp-namespace.c     2013-05-09 22:32:17.907659782 -0700
@@ -808,9 +808,7 @@
        if (sym != NULL)
          return sym;

-       /* If no matching symbols were found, try searching any
-          base classes.  */
-       return find_symbol_in_baseclass (parent_type, nested_name, block);
+        return NULL;
       }

     case TYPE_CODE_FUNC:

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


  reply	other threads:[~2013-05-10  5:49 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-10  5:08 [Bug c++/15454] New: " csapuntz at gmail dot com
2013-05-10  5:49 ` csapuntz at gmail dot com [this message]
2013-06-05 20:09 ` [Bug c++/15454] " keiths at redhat dot com
2014-01-25 21:04 ` altsysrq at gmail 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=bug-15454-4717-DDNj9TAHG6@http.sourceware.org/bugzilla/ \
    --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: link
Be 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).