From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29158 invoked by alias); 9 Jul 2009 04:27:08 -0000 Received: (qmail 29148 invoked by uid 22791); 9 Jul 2009 04:27:07 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_24,SPF_PASS X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (216.239.45.13) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 09 Jul 2009 04:27:01 +0000 Received: from spaceape23.eur.corp.google.com (spaceape23.eur.corp.google.com [172.28.16.75]) by smtp-out.google.com with ESMTP id n694Qw43012906 for ; Wed, 8 Jul 2009 21:26:58 -0700 Received: from pxi11 (pxi11.prod.google.com [10.243.27.11]) by spaceape23.eur.corp.google.com with ESMTP id n694QstO026783 for ; Wed, 8 Jul 2009 21:26:55 -0700 Received: by pxi11 with SMTP id 11so258238pxi.26 for ; Wed, 08 Jul 2009 21:26:54 -0700 (PDT) Received: by 10.114.211.2 with SMTP id j2mr517454wag.139.1247113614152; Wed, 08 Jul 2009 21:26:54 -0700 (PDT) Received: from localhost.localdomain.google.com (adsl-71-133-8-30.dsl.pltn13.pacbell.net [71.133.8.30]) by mx.google.com with ESMTPS id v39sm128906wah.62.2009.07.08.21.26.53 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 08 Jul 2009 21:26:53 -0700 (PDT) To: Richard Henderson Cc: Larry Evans , gcc@gcc.gnu.org Subject: Re: avoiding gdb cc1plus PACK_EXPANSION_PATTERN(result) gives 'No symbol "__extension__"', error msg References: <4A551A3C.7020606@redhat.com> From: Ian Lance Taylor Date: Thu, 09 Jul 2009 04:27:00 -0000 In-Reply-To: <4A551A3C.7020606@redhat.com> (Richard Henderson's message of "Wed\, 08 Jul 2009 15\:14\:20 -0700") Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-System-Of-Record: true X-IsSubscribed: yes Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org X-SW-Source: 2009-07/txt/msg00154.txt.bz2 Richard Henderson writes: > A better project for helping debug gcc would be to convert all macros > that use statement expressions into proper inline functions. Which > would then be emitted as out-of-line functions by gcc's -fkeep-inlines > flag, which would yield something that's callable from within gdb. Conveniently, if you build with C++, the inline functions can return references, so you don't have to change hundreds of occurrences of REG_ATTRS (x) = ...; into SET_REG_ATTRS (x, ...); You do still have to face the problem that the macros are often defined before the structures that they use, so simple replacement with inline functions fails. Ian