From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2623 invoked by alias); 15 Jan 2009 21:06:26 -0000 Received: (qmail 2606 invoked by uid 48); 15 Jan 2009 21:06:26 -0000 Date: Thu, 15 Jan 2009 21:06:00 -0000 From: "rearnsha at gcc dot gnu dot org" To: gdb-prs@sourceware.org Message-ID: <20090115210626.9748.rearnsha@gcc.gnu.org> Reply-To: sourceware-bugzilla@sourceware.org Subject: [Bug macros/9748] New: macros containing __extension__ won't run X-Bugzilla-Reason: CC Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-prs-owner@sourceware.org X-SW-Source: 2009-q1/txt/msg00072.txt.bz2 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.