From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14804 invoked by alias); 13 Feb 2007 16:55:16 -0000 Received: (qmail 14795 invoked by uid 22791); 13 Feb 2007 16:55:15 -0000 X-Spam-Check-By: sourceware.org Received: from mail.math.TU-Berlin.DE (HELO mail.math.TU-Berlin.DE) (130.149.12.212) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 13 Feb 2007 16:55:09 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.math.TU-Berlin.DE (8.13.7/8.13.3) with ESMTP id l1DGt5Wn019559; Tue, 13 Feb 2007 17:55:05 +0100 (MET) Received: from mail.math.TU-Berlin.DE ([127.0.0.1]) by localhost (mail.math.tu-berlin.de [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 19290-07; Tue, 13 Feb 2007 17:55:03 +0100 (MET) Received: from mersenne.math.TU-Berlin.DE (mersenne.math.TU-Berlin.DE [130.149.14.233]) by mail.math.TU-Berlin.DE (8.13.7/8.13.3) with ESMTP id l1DGt1db019550 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 13 Feb 2007 17:55:01 +0100 (MET) Received: from mersenne.math.TU-Berlin.DE (localhost [127.0.0.1]) by mersenne.math.TU-Berlin.DE (8.13.3/8.13.3/SuSE Linux 0.7) with ESMTP id l1DGt1n0026888; Tue, 13 Feb 2007 17:55:01 +0100 Received: (from thor@localhost) by mersenne.math.TU-Berlin.DE (8.13.3/8.13.3/Submit) id l1DGt1m5026884; Tue, 13 Feb 2007 17:55:01 +0100 From: Thomas Richter Message-Id: <200702131655.l1DGt1m5026884@mersenne.math.TU-Berlin.DE> Subject: Re: [BUG] Tab Expansion for C++ In-Reply-To: <20070213164628.GA15154@caradoc.them.org> To: Daniel Jacobowitz Date: Tue, 13 Feb 2007 17:08:00 -0000 CC: gdb@sourceware.org X-Mailer: ELM [version 2.4ME+ PL108 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2007-02/txt/msg00107.txt.bz2 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.". 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