This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: stabs.texinfo update for macro define/undefine
- From: Eli Zaretskii <eliz at gnu dot org>
- To: David Taylor <dtaylor at emc dot com>
- Cc: gdb at sourceware dot org
- Date: Wed, 25 Oct 2006 22:35:29 +0200
- Subject: Re: stabs.texinfo update for macro define/undefine
- References: <200610251931.k9PJVRDO011265@mailhub.lss.emc.com>
- Reply-to: Eli Zaretskii <eliz at gnu dot org>
> Date: Wed, 25 Oct 2006 15:31:27 -0400
> From: David Taylor <dtaylor@emc.com>
>
> This relates to my stabs and define/undef patches posted to
> gcc-patches and gdb-patches.
Thanks.
> I'm also unsure *where* in stabs.texinfo to put this information.
How about between "Types" and "Symbol Tables"?
> Macro define and undefine.
>
> Sometimes macro define and undefine information is recorded in stabs
> (e.g., with -g3 -gstabs when using gcc).
I don't like this ``sometimes'' thing, it makes one wonder when it
happens and when not. How about this instead:
This section describes the stabs support for macro define and
undefine information, supported on some systems.
> .stabs "NONE 42",54,0,1,0 # 54 is N_MAC_DEFINE
> .stabs "TWO(a,b) (a + (a) + 2 * b)",54,0,2,0 # 54 is N_MAC_DEFINE
> .stabs "ONE(c) (c + 19)",54,0,3,0 # 54 is N_MAC_DEFINE
> .stabs "ONE",58,0,10,0 # 58 is N_MAC_UNDEF
> .stabs "ONE(c) (c + 23)",54,0,11,0 # 54 is N_MAC_DEFINE
These lines need to be shortened to avoid overflowing the page
margins. Perhaps the comments should be separated from the rest.
Other than that, the text is okay with me, thanks.