From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15927 invoked by alias); 19 Mar 2002 04:33:23 -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 15759 invoked from network); 19 Mar 2002 04:33:18 -0000 Received: from unknown (HELO zwingli.cygnus.com) (208.245.165.35) by sources.redhat.com with SMTP; 19 Mar 2002 04:33:18 -0000 Received: by zwingli.cygnus.com (Postfix, from userid 442) id 60CAB5E9DE; Mon, 18 Mar 2002 23:33:17 -0500 (EST) To: Neil Booth Cc: gdb-patches@sources.redhat.com, gcc@gcc.gnu.org Subject: Re: RFC: C/C++ preprocessor macro support for GDB References: <20020317062306.CC96D5E9DE@zwingli.cygnus.com> <20020318183339.GB19897@daikokuya.demon.co.uk> From: Jim Blandy Date: Mon, 18 Mar 2002 20:33:00 -0000 In-Reply-To: <20020318183339.GB19897@daikokuya.demon.co.uk> Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2002-03/txt/msg00338.txt.bz2 Instead of the bug you guessed, here's the bug I actually do have: (gdb) show macro A Defined at /home/jimb/gdb/macros/play/test.c:12 #define A(x) x (gdb) show macro B Defined at /home/jimb/gdb/macros/play/test.c:12 #define B(x) A (gdb) macro expand B(ignored)(passed through) expands to: A(passed through) (gdb) ISO/IEC 9899:1999(E) 6.10.3.4 para 1: "Then, the resulting preprocessing token sequence is rescanned, along with all subsequent preprocessing tokens of the source file, for more macro names to replace." It's the "along with all subsequent PP tokens" part that I got wrong. (Did I mention that I think we should replace macroexp.c with libcpp?)