This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug gdb/14636] New: Tab completion issues in C++
- From: "jakub at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Thu, 27 Sep 2012 19:56:22 +0000
- Subject: [Bug gdb/14636] New: Tab completion issues in C++
- Auto-submitted: auto-generated
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.