This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: [BUG] Tab Expansion for C++
- From: Daniel Jacobowitz <drow at false dot org>
- To: Thomas Richter <thor at mail dot math dot tu-berlin dot de>
- Cc: gdb at sourceware dot org
- Date: Tue, 13 Feb 2007 11:46:28 -0500
- Subject: Re: [BUG] Tab Expansion for C++
- References: <200702131613.l1DGDWVX009239@mersenne.math.TU-Berlin.DE>
On Tue, Feb 13, 2007 at 05:13:32PM +0100, Thomas Richter wrote:
> the TAB expansion for C++ class members in GDB is - unfortunately - close
> to useless.
That's your misunderstanding right there - GDB doesn't support context
sensitive tab completion at all.
I think Pierre implemented this for Pascal once, but it was never
merged. Aha, there's the patch - April 2002. There's a bit of yacc
hacking required. I'm not really sure how it would work for C++,
but I think badly: the grammar will not gracefully handle partially
typed expressions, like "p ( x.<tab>".
--
Daniel Jacobowitz
CodeSourcery