This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/11543] using-directive does not autocomplete


------- 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]