This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA] Patch to limit field name completion candidates
>>>>> "Eli" == Eli Zaretskii <eliz@gnu.org> writes:
Eli> Thanks, but this text leaves too many questions unanswered (what is
Eli> ``allowable field names''? allowable by whom? what are ``field
Eli> operations''? etc.). I think an example will go a long way towards
Eli> making this clear.
How about this?
* When completing in expressions, gdb will attempt to limit
completions to allowable fields, where appropriate. For instance,
consider:
# struct example { int f1; double f2; };
# struct example variable;
(gdb) p variable.
If the user types TAB at the end of this command line, the available
completions will be "f1" and "f2".
Tom