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] New: macros containing __extension__ won't run


Consider a macro, such as the following (from GCC):

#define TREE_CHECK(T, CODE) __extension__ ({ __typeof (T) const __t = (T); if
(TREE_CODE (__t) != (CODE)) tree_check_failed (__t, __FILE__, __LINE__,
__FUNCTION__, (CODE), 0); __t; })

if the object containing the macro is compiled with -g3, then the definition is
available to GDB, but this doesn't help much...

(gdb) p TREE_CHECK (fntype, CALL_EXPR)
No symbol "__extension__" in current context.

-- 
           Summary: macros containing __extension__ won't run
           Product: gdb
           Version: 6.7
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: macros
        AssignedTo: unassigned at sourceware dot org
        ReportedBy: rearnsha at gcc dot gnu dot org
                CC: gdb-prs at sourceware dot org


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]