This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug c++/11543] using-directive does not autocomplete
- From: "cmoller at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: 27 Apr 2010 16:47:10 -0000
- Subject: [Bug c++/11543] using-directive does not autocomplete
- References: <20100426211822.11543.jan.kratochvil@redhat.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- 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.