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] New: using-directive does not autocomplete


namespace A { int variablex = 1; }
int main (void)
{
  int variabley = 2;
  using namespace A;
  return 0; /* break-here */
}
-------------------------------------------------------------------------------
(gdb) p variablex
$1 = 1
(gdb) p variabley
$2 = 2
But when I type
(gdb) p vari<tab>
it autocompletes to:
(gdb) p variabley
without any trace of "variablex" being also available.

I am not completely sure it is the right behavior but I believe so.

-- 
           Summary: using-directive does not autocomplete
           Product: gdb
           Version: unknown
            Status: UNCONFIRMED
          Severity: minor
          Priority: P2
         Component: c++
        AssignedTo: unassigned at sourceware dot org
        ReportedBy: jan dot kratochvil at redhat dot com
                CC: gdb-prs at sourceware dot org,swagiaal at redhat dot com
GCC target triplet: x86_64-unknown-linux-gnu


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]