From: Joel Brobecker <brobecker@adacore.com>
To: Eli Zaretskii <eliz@gnu.org>, gdb-patches@sourceware.org
Subject: Re: [RFC/RFA] Wrong documentation for "&&var"?
Date: Fri, 11 Jan 2008 19:44:00 -0000 [thread overview]
Message-ID: <20080111194353.GA9143@adacore.com> (raw)
In-Reply-To: <20080108204130.GA8365@caradoc.them.org>
[-- Attachment #1: Type: text/plain, Size: 706 bytes --]
> > The original text was there since the first version in CVS (in 1999),
> > so I'm inclined to think it's a bug in the parser.
>
> >From what I know about parsing C, I suggest we go with the
> documentation change. && is a single token, and && NAME is not
> currently valid. It would introduce some ambiguities into the
> grammer, I suspect.
So Eli, do you agree with the documentation change? We can always
redocument this later if we manage to make it work... Let me resend
the patch:
2008-01-08 Paul Hilfinger <hilfinger@adacore.com>
* gdb.texinfo (C Operators): Remove incorrect parenthetical comment
about &&var, which is rejected by the expression parser.
Thanks,
--
Joel
[-- Attachment #2: formatted-doc.diff --]
[-- Type: text/plain, Size: 546 bytes --]
Index: gdb.texinfo
===================================================================
--- gdb.texinfo (revision 89)
+++ gdb.texinfo (revision 90)
@@ -9250,7 +9250,7 @@ Address operator. Defined on variables.
For debugging C@t{++}, @value{GDBN} implements a use of @samp{&} beyond what is
allowed in the C@t{++} language itself: you can use @samp{&(&@var{ref})}
-(or, if you prefer, simply @samp{&&@var{ref}}) to examine the address
+to examine the address
where a C@t{++} reference variable (declared with @samp{&@var{ref}}) is
stored.
next prev parent reply other threads:[~2008-01-11 19:44 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-08 6:55 Joel Brobecker
2008-01-08 20:31 ` Eli Zaretskii
2008-01-08 20:41 ` Daniel Jacobowitz
2008-01-11 19:44 ` Joel Brobecker [this message]
2008-01-11 21:08 ` Eli Zaretskii
2008-01-12 8:38 ` Joel Brobecker
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080111194353.GA9143@adacore.com \
--to=brobecker@adacore.com \
--cc=eliz@gnu.org \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox