From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9582 invoked by alias); 5 Jun 2008 20:50:14 -0000 Received: (qmail 9567 invoked by uid 22791); 5 Jun 2008 20:50:13 -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; Thu, 05 Jun 2008 20:49:52 +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 m55Knbae026474 for ; Thu, 5 Jun 2008 16:49:48 -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 m55KnaF9016554; Thu, 5 Jun 2008 16:49:36 -0400 Received: from opsy.redhat.com (vpn-10-81.bos.redhat.com [10.16.10.81]) by pobox.corp.redhat.com (8.13.1/8.13.1) with ESMTP id m55KnaeD026936; Thu, 5 Jun 2008 16:49:36 -0400 Received: by opsy.redhat.com (Postfix, from userid 500) id 7DF5D37819B; Thu, 5 Jun 2008 14:49:35 -0600 (MDT) To: gdb-patches@sources.redhat.com Subject: Re: [RFA] Patch to limit field name completion candidates References: <20080605170952.GJ29085@caradoc.them.org> <20080605194553.GG25085@caradoc.them.org> From: Tom Tromey Reply-To: Tom Tromey X-Attribution: Tom Date: Thu, 05 Jun 2008 20:50:00 -0000 In-Reply-To: <20080605194553.GG25085@caradoc.them.org> (Daniel Jacobowitz's message of "Thu\, 5 Jun 2008 15\:45\:53 -0400") 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-06/txt/msg00075.txt.bz2 Daniel> The patch and test are OK! Work out the NEWS and manual bits with Daniel> Eli, and you're home free. The NEWS part is pending. Eli, how does this look for the manual? Tom 2008-06-05 Tom Tromey * gdb.texinfo (Completion): Add field name example. *** gdb.texinfo 10 May 2008 09:06:02 -0600 1.495 --- gdb.texinfo 05 Jun 2008 14:40:33 -0600 *************** *** 1,6 **** \input texinfo @c -*-texinfo-*- @c Copyright (C) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1998, ! @c 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 @c Free Software Foundation, Inc. @c @c %**start of header --- 1,6 ---- \input texinfo @c -*-texinfo-*- @c Copyright (C) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1998, ! @c 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2008 @c Free Software Foundation, Inc. @c @c %**start of header *************** *** 1521,1526 **** --- 1521,1538 ---- overload-resolution off} to disable overload resolution; see @ref{Debugging C Plus Plus, ,@value{GDBN} Features for C@t{++}}. + @cindex completion of field names + @cindex field name completion + When completing in an expression which looks up a field in a + structure, @value{GDBN} also tries to limit completions to the field + names available in the type of the left-hand-side: + + @smallexample + (@value{GDBP}) p gdb_stdout.@key{M-?} + magic to_delete to_fputs to_put to_rewind + to_data to_flush to_isatty to_read to_write + @end smallexample + @node Help @section Getting Help