>>>>> "Larry" == Larry Evans <cppljev...@suddenlink.net> writes:

Larry> I compiled gcc with -g3 -O0' compiler flags to enable invocation of
Larry> macros during a gdb session; however, the
Larry> macro,  PACK_EXPANSION_PATTERN, apparently uses a symbol:
Larry>   __extension__
Larry> not understood by gdb.  How can gdb be made to understand
Larry> __extension__ or how can __extension__ be rm'ed from the
Larry> macros?

This is a gdb PR:

http://sourceware.org/bugzilla/show_bug.cgi?id=9748

If you use a new (CVS) gdb, that has "macro define", you can use the
defines in that PR to circumvent the GCC statement expressions and
make everything work reasonably well.  You lose checking but I never
missed that when evaluating things from the gdb CLI.

Once this gdb is released I think those macro defines should go in
gcc's .gdbinit.

Tom

Reply via email to