From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11850 invoked by alias); 19 Mar 2002 07:23:53 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 11734 invoked from network); 19 Mar 2002 07:23:50 -0000 Received: from unknown (HELO monkey.daikokuya.demon.co.uk) (158.152.184.26) by sources.redhat.com with SMTP; 19 Mar 2002 07:23:50 -0000 Received: from neil by monkey.daikokuya.demon.co.uk with local (Exim 3.35 #1 (Debian)) id 16nDyG-0007Qr-00; Tue, 19 Mar 2002 07:23:48 +0000 Date: Mon, 18 Mar 2002 23:23:00 -0000 From: Neil Booth To: Jim Blandy Cc: gdb-patches@sources.redhat.com, gcc@gcc.gnu.org Subject: Re: RFC: C/C++ preprocessor macro support for GDB Message-ID: <20020319072347.GA27765@daikokuya.demon.co.uk> References: <20020317062306.CC96D5E9DE@zwingli.cygnus.com> <20020318183339.GB19897@daikokuya.demon.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.27i X-SW-Source: 2002-03/txt/msg00341.txt.bz2 Jim Blandy wrote:- > Just for the record: > > (gdb) show macro A > Defined at /home/jimb/gdb/macros/play/test.c:12 > #define A(x) x > (gdb) macro expand A(A)(1) > expands to: A(1) > (gdb) > > That's not to say that there aren't other subtle bugs in there. :) Yah, it wasn't a good example, because a stack is enough after all for this one 8-) I can't think of an easy one; try some of the macro*.c in CPP's testsuite if you can be bothered. Neil.