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


>>>>> "Eli" == Eli Zaretskii <eliz@gnu.org> 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.<TAB>", 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


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