This is the mail archive of the gdb-prs@sourceware.org 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]

[Bug macros/9748] macros containing __extension__ won't run


------- Additional Comments From drow at false dot org  2009-01-15 21:40 -------
Subject: Re:  macros containing __extension__ won't run

On Thu, Jan 15, 2009 at 09:30:06PM -0000, pedro at codesourcery dot com wrote:
> I current gdb mainline, you could try defining __extension__ to empty:
> 
>  (gdb) macro define __extension__
> 
> ("macro define" was stubbed in yearlier versions of gdb, it
> has only recently been implemented)
> 
> I guess you'd need to do the same for __FILE__, __LINE__, etc, but I
> think you'll trip on __typeof.

Also on statement expressions, which is what the __extension__ marker
is for in the first place :-)

I don't think statement expressions are likely to be implemented in
GDB.  It currently has only a C expression parser, with no support for
statements etc.



-- 


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

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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