This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: RFA: expand macros in C expressions
- From: Jim Blandy <jimb at redhat dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: 10 May 2002 10:20:09 -0500
- Subject: Re: RFA: expand macros in C expressions
- References: <20020510050907.358FC5EA11@zwingli.cygnus.com>
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.