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: RFC: C/C++ preprocessor macro support for GDB


Jim Blandy wrote:-

> Just for the record:
> 
>     (gdb) show macro A
>     Defined at /home/jimb/gdb/macros/play/test.c:12
>     #define A(x) x
>     (gdb) macro expand A(A)(1)
>     expands to: A(1)
>     (gdb) 
> 
> That's not to say that there aren't other subtle bugs in there.  :)

Yah, it wasn't a good example, because a stack is enough after all for
this one 8-)  I can't think of an easy one; try some of the macro*.c in
CPP's testsuite if you can be bothered.

Neil.


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