From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1798 invoked by alias); 13 May 2008 15:31:48 -0000 Received: (qmail 1787 invoked by uid 22791); 13 May 2008 15:31:47 -0000 X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 13 May 2008 15:31:30 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id m4DFVNmM025537 for ; Tue, 13 May 2008 11:31:23 -0400 Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [10.11.255.20]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id m4DFVLVc012386; Tue, 13 May 2008 11:31:22 -0400 Received: from opsy.redhat.com (vpn-10-32.bos.redhat.com [10.16.10.32]) by pobox.corp.redhat.com (8.13.1/8.13.1) with ESMTP id m4DFVLPC020993; Tue, 13 May 2008 11:31:21 -0400 Received: by opsy.redhat.com (Postfix, from userid 500) id D7700508079; Tue, 13 May 2008 09:31:20 -0600 (MDT) To: Eli Zaretskii Cc: gdb-patches@sources.redhat.com Subject: Re: [RFA] Patch to limit field name completion candidates References: From: Tom Tromey Reply-To: Tom Tromey X-Attribution: Tom Date: Tue, 13 May 2008 18:20:00 -0000 In-Reply-To: (Eli Zaretskii's message of "Tue\, 13 May 2008 06\:16\:31 +0300") Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2008-05/txt/msg00394.txt.bz2 >>>>> "Eli" == Eli Zaretskii writes: >> I only updated the C parser. This code works by modifying the lexer >> to return a special COMPLETE token in the important cases. Note that >> it completes both "p foo.TAB" and "p foo.somethingTAB" correctly -- >> the former by making an expression to a field with an empty name. Eli> Thanks. But what about the situation where I actually want to type Eli> p foo.c:bar Eli> If I type "p foo.", will I see "foo.c" as one of the possible Eli> completions, after your change, whether there is or isn't also a Eli> struct foo in the program? Nope, it won't. I didn't realize this syntax was permissible. And I can't seem to get it to work on a simple test case: Breakpoint 1, main () at s.c:8 8 return values[57].free2; (gdb) p s.c:values[0] No symbol "s" in current context. How can I see this in action? Tom