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: RFA: add macro commands


> Date: Sat, 11 May 2002 00:08:13 +0100
> From: Neil Booth <neil@daikokuya.demon.co.uk>
> 
> Jim Blandy wrote:-
> 
> > Given that the macros are stored in a splay tree, they're all sorted
> > in a way that would make efficient completion straightforward.  So it
> > wouldn't be too hard to write a macro-only completion function.
> 
> Just in case you'd not realized, macro expansions are frequently
> different, depending on location in the source files.

I'm not sure I understand what you mean.  I was talking about
completing on macro _names_, not trhe results of their _expansion_.
That is, if I type "print regnum < NUM_" and hit TAB, I'd expect to
see NUM_REGS and NUM_PSEUDO_REGS as possible completions.  But I
don't care about the values these two expand to.

So this kind of completion does not depend on the location in the
source files, only on the macros recorded in the debug info.

Am I missing something?


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