From: Joel Brobecker <brobecker@adacore.com>
To: gdb-patches@sourceware.org
Subject: [RFC/RFA] Wrong documentation for "&&var"?
Date: Tue, 08 Jan 2008 06:55:00 -0000 [thread overview]
Message-ID: <20080108065524.GA24614@adacore.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 584 bytes --]
Hello,
Paul noticed the following.
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.
Not knowing what was really meant at the implementation level, I'm not
sure whether this is a parser implementation bug, or an error in the
documentation. Paul thought that this was an error in the documentation
so, assuming he is correct, I'm submitting this change on his behalf.
So, is this a parser bug or a documentation error?
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 reply other threads:[~2008-01-08 6:55 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-08 6:55 Joel Brobecker [this message]
2008-01-08 20:31 ` Eli Zaretskii
2008-01-08 20:41 ` Daniel Jacobowitz
2008-01-11 19:44 ` Joel Brobecker
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=20080108065524.GA24614@adacore.com \
--to=brobecker@adacore.com \
--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