RFC: C/C++ preprocessor macro support for GDB

Neil Booth neil@daikokuya.demon.co.uk
Sun Mar 17 04:46:00 GMT 2002


Jim Blandy wrote:-

> - Instead of using libcpp, this patch includes a newly-written macro
>   expander.  It seems to work fine, but this is still a bug.  But
>   beware, GDB has some weird requirements: you can't just preprocess
>   the whole expression at once, and then parse it.  (I can explain
>   that in more detail if anyone is interested; see the comments the
>   patch adds to c-lang.c.)

What are the issues with using libcpp?  It would be a good test of its
viability as an independent library to have it used somewhere else.

Neil.



More information about the Gdb-patches mailing list