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: 17 May 2002 12:58:49 -0500
- Subject: Re: RFA: expand macros in C expressions
- References: <20020510050907.358FC5EA11@zwingli.cygnus.com>
I've committed this patch.
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. 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.