This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC 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: avoiding gdb cc1plus PACK_EXPANSION_PATTERN(result) gives 'No symbol "__extension__"', error msg


>>>>> "Larry" == Larry Evans <cppljevans@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


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