This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFA] Patch to limit field name completion candidates


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  <tromey@redhat.com>

	* 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]