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 gdb/14636] New: Tab completion issues in C++


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

             Bug #: 14636
           Summary: Tab completion issues in C++
           Product: gdb
           Version: 7.5
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gdb
        AssignedTo: unassigned@sourceware.org
        ReportedBy: jakub@redhat.com
    Classification: Unclassified


cat > a.ii <<\EOF
# 1 "a.C"
# 1 "a1.h" 1
struct basic_block_def;
typedef basic_block_def *basic_block;
# 2 "a.C" 2
# 1 "a2.h" 1
struct basic_block_def
{
  int index;
};
# 3 "a.C" 2

__attribute__((noinline, noclone)) static void
foo (basic_block x, int y)
{
  __asm volatile ("" : : : "memory");
}

int
main ()
{
  foo ((basic_block) 0, 0);
}
EOF
g++ -g -o a a.ii
gdb ./a
p foo<tab>

This will print just
(gdb) p foo(basic_block
and stop there, even when the function isn't overloaded, and further tab is
about just completing the basic_block word, not the whole function name.
I don't care much which equivalent typedef is chosen in the tab completion, but
would prefer if just one of them (slight preference might be what is used in
the sources if there is just one alternative).

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


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