From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16084 invoked by alias); 1 Nov 2006 03:21:16 -0000 Received: (qmail 16071 invoked by uid 22791); 1 Nov 2006 03:21:15 -0000 X-Spam-Check-By: sourceware.org Received: from mexforward.lss.emc.com (HELO mexforward.lss.emc.com) (128.222.32.20) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 01 Nov 2006 03:21:13 +0000 Received: from mailhub.lss.emc.com (nagas.lss.emc.com [10.254.144.11]) by mexforward.lss.emc.com (Switch-3.1.7/Switch-3.1.7) with ESMTP id kA1360hZ015457; Tue, 31 Oct 2006 22:06:00 -0500 (EST) Received: from emc.com (usendtaylorx1l.lss.emc.com [10.243.42.21]) by mailhub.lss.emc.com (Switch-3.1.8/Switch-3.1.7) with ESMTP id kA135iYx019864; Tue, 31 Oct 2006 22:05:59 -0500 (EST) Message-Id: <200611010305.kA135iYx019864@mailhub.lss.emc.com> To: Jim Blandy cc: gdb-patches@sourceware.org, Eli Zaretskii Subject: Re: stabs.texinfo update for macro define/undefine In-Reply-To: Your message of "Tue, 31 Oct 2006 15:23:29 PST." References: <200610251931.k9PJVRDO011265@mailhub.lss.emc.com> <200610302225.k9UMPLZ9001050@mailhub.lss.emc.com> Date: Wed, 01 Nov 2006 03:21:00 -0000 From: David Taylor X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2006-11/txt/msg00000.txt.bz2 > From: Jim Blandy > Date: Tue, 31 Oct 2006 15:23:29 -0800 > > It's clear from the example, but it would be nice if the text > explicitly explained how function-like macro arguments appear in the > N_MAC_DEFINE stabs. It also should explain how the following are > distinguished: > > #define foo x > #define foo() x > > With the latter #definition, 'foo' followed by something other than an > opening parenthesis isn't replaced. The former shows up as "foo x", the latter as "foo() x". Yes, the example could be enhanced to illustrate that. And a little more about the ``transformation'' from what is found in the *.c file to the stabs entry. But, as to the latter -- am I misunderstanding you? Are you asking for text about when something is replaced versus when it isn't replaced? If yes, that is *WAY* beyond the scope of the file. The file deals exclusively with *STABS*. When something is replaced vs not replaced is a CPP issue. It has nothing to do with STABS.