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: expand macros in C expressions



Jim Blandy <jimb@redhat.com> writes:
> The last code patch!  Doc and test patches on the way.
> 
> This one is the real mess.  A twistly little maze of global variables.
> Swapping lexptr values back and forth.  Your stomach will churn.
> 
> I'd love to see a better solution, but before you suggest an
> alternative, please take some time to read the code (or try it out!)
> and make sure it works.

Err, what I meant was, please take the time to make sure that *your*
suggestion works.  I tried a few simpler approaches, none of which
turned out right.

> GDB seems to have a lot of expectations about how lexptr behaves
> that make the simple solutions unusable.  For example, I don't think
> one can use the nice simple macro_expand function.  Hopefully I've
> missed something.


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