public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
From: "cmoller at redhat dot com" <sourceware-bugzilla@sourceware.org>
To: gdb-prs@sourceware.org
Subject: [Bug c++/11543] using-directive does not autocomplete
Date: Tue, 27 Apr 2010 16:47:00 -0000	[thread overview]
Message-ID: <20100427164710.21473.qmail@sourceware.org> (raw)
In-Reply-To: <20100426211822.11543.jan.kratochvil@redhat.com>


------- Additional Comments From cmoller at redhat dot com  2010-04-27 16:47 -------
The problem is that in symtab.c:completion_list_add_name(), qualified names show
up as "A::variablex" and the first test is a trivial reject of strcmp(..., ...)
that matches the beginning of the symname with the beginning of the target,
thereby comparing the target to the qualifier and failing.

Trivial to fix by skipping past the qualifier in the symname.

Two questions:

  1.  Should skipping the qualifier be the default behaviour?  Or should doing
that be some kind of option?

  2.  Are multiple qualifiers like "A::B::variablex" possible?

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at sourceware dot|cmoller at redhat dot com
                   |org                         |
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|                            |1


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

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


  reply	other threads:[~2010-04-27 16:47 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-26 21:18 [Bug c++/11543] New: " jan dot kratochvil at redhat dot com
2010-04-27 16:47 ` cmoller at redhat dot com [this message]
2010-04-28 15:30 ` [Bug c++/11543] " swagiaal at redhat dot com
2010-04-28 17:27 ` cmoller at redhat dot com
2010-07-22 15:38 ` swagiaal 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=20100427164710.21473.qmail@sourceware.org \
    --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).