Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Thomas Richter <thor@mail.math.tu-berlin.de>
To: Daniel Jacobowitz <drow@false.org>
Cc: gdb@sourceware.org
Subject: Re: [BUG] Tab Expansion for C++
Date: Tue, 13 Feb 2007 17:08:00 -0000	[thread overview]
Message-ID: <200702131655.l1DGt1m5026884@mersenne.math.TU-Berlin.DE> (raw)
In-Reply-To: <20070213164628.GA15154@caradoc.them.org>

Hi Daniel,

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

Well, interested in a patch? It might need some tweaking to be sensitive
to the language (i.e. to accept the :: in C++ code only). Sure enough,
it won't fix *all* the problems, but I'm using it here daily and it is
a big improvement. I would need some help of the gdb gurus though to integrate
it "nicely".

So long,
	Thomas


  reply	other threads:[~2007-02-13 16:55 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-13 16:28 Thomas Richter
2007-02-13 16:56 ` Daniel Jacobowitz
2007-02-13 17:08   ` Thomas Richter [this message]
2007-02-13 19:33     ` Daniel Jacobowitz
2007-02-14 12:08       ` Thomas Richter
2007-02-14 12:36         ` Daniel Jacobowitz
2007-02-19 11:48           ` Thomas Richter
2007-02-19 12:28             ` Daniel Jacobowitz
2007-02-19 13:03             ` Robert Dewar
2007-02-13 19:00 ` Andreas Schwab

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200702131655.l1DGt1m5026884@mersenne.math.TU-Berlin.DE \
    --to=thor@mail.math.tu-berlin.de \
    --cc=drow@false.org \
    --cc=gdb@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox