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


> Cc: gdb-patches@sources.redhat.com
> From: Tom Tromey <tromey@redhat.com>
> Date: Tue, 13 May 2008 09:31:20 -0600
> 
> 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?

What if you type p s<TAB>, does it work then?


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