This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
gdb and binutils branch master updated. 805e1f190887b3b7dea3fd157d58bc25effcf688
- From: tromey at sourceware dot org
- To: gdb-cvs at sourceware dot org
- Date: 15 Nov 2013 15:53:40 -0000
- Subject: gdb and binutils branch master updated. 805e1f190887b3b7dea3fd157d58bc25effcf688
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "gdb and binutils".
The branch, master has been updated
via 805e1f190887b3b7dea3fd157d58bc25effcf688 (commit)
from ad8ecc8114ce17e4f8f118606225f1002d7faec2 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=805e1f190887b3b7dea3fd157d58bc25effcf688
commit 805e1f190887b3b7dea3fd157d58bc25effcf688
Author: Tom Tromey <tromey@redhat.com>
Date: Mon Nov 4 12:38:10 2013 -0700
fix PR c++/16117
This patch fixes PR c++/16117.
gdb has an extension so that users can use expressions like FILE::NAME
to choose a variable of the given name from the given file. The bug
is that this extension takes precedence over ordinary C++ expressions
of the same form. You might think this is merely hypothetical, but
now that C++ headers commonly do not use an extension, it is more
common.
This patch fixes the bug by making two related changes. First, it
changes gdb to prefer the ordinary C++ meaning of a symbol over the
extended meaning. Second, it arranges for single-quoting of the
symbol to indicate a preference for the extension.
Built and regtested on x86-64 Fedora 18.
New test case included.
2013-11-15 Tom Tromey <tromey@redhat.com>
PR c++/16117:
* c-exp.y (lex_one_token): Add "is_quoted_name" argument.
(classify_name): Likewise. Prefer a field of "this" over a
filename.
(classify_inner_name, yylex): Update.
2013-11-15 Tom Tromey <tromey@redhat.com>
* gdb.texinfo (Variables): Note gdb rules for ambiguous cases.
Add example.
2013-11-15 Tom Tromey <tromey@redhat.com>
* gdb.cp/includefile: New file.
* gdb.cp/filename.exp: New file.
* gdb.cp/filename.cc: New file.
-----------------------------------------------------------------------
Summary of changes:
gdb/ChangeLog | 8 +++++
gdb/c-exp.y | 53 ++++++++++++++++++++++++------------
gdb/doc/ChangeLog | 5 +++
gdb/doc/gdb.texinfo | 23 ++++++++++++---
gdb/testsuite/ChangeLog | 6 ++++
gdb/testsuite/gdb.cp/filename.cc | 36 +++++++++++++++++++++++++
gdb/testsuite/gdb.cp/filename.exp | 33 +++++++++++++++++++++++
gdb/testsuite/gdb.cp/includefile | 18 ++++++++++++
8 files changed, 159 insertions(+), 23 deletions(-)
create mode 100644 gdb/testsuite/gdb.cp/filename.cc
create mode 100644 gdb/testsuite/gdb.cp/filename.exp
create mode 100644 gdb/testsuite/gdb.cp/includefile
hooks/post-receive
--
gdb and binutils