This is the mail archive of the gdb-patches@sources.redhat.com 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: [RFC] Enhance completer for fields of structures.



On Mon, 22 Apr 2002, Pierre Muller wrote:

>    The patch attached below does allow me to get a 
> correct completion of expressions like
> if X is a variable of type
> PRECORD, PRECORD being a pointer to type 
> TRECORD = record
>     x,y : longint;
>     next : precord;
> end;
> 
> (gdb) print X^.N
> if I press tab, I get  X^.NEXT
> even if there are several global variables starting with letter N.

Sounds good, but please make sure the change doesn't break any past 
behavior.  For example, did you test it with C++ foo:bar and foo::bar 
class members?


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