[gdb/f13/master] - Fix symbol lookup misses methods of current class (BZ 631158, Sami Wagiaalla).
Jan Kratochvil
jkratoch at fedoraproject.org
Sat Sep 11 19:04:02 UTC 2010
commit 06ce37c08c82c504be8dffa6497540c61c664e07
Author: Jan Kratochvil <jan.kratochvil at redhat.com>
Date: Sat Sep 11 21:03:27 2010 +0200
- Fix symbol lookup misses methods of current class (BZ 631158, Sami Wagiaalla).
gdb-bz631158-cxx-this-lookup.patch | 14 ++++++++++++++
gdb.spec | 9 ++++++++-
2 files changed, 22 insertions(+), 1 deletions(-)
---
diff --git a/gdb-bz631158-cxx-this-lookup.patch b/gdb-bz631158-cxx-this-lookup.patch
new file mode 100644
index 0000000..9308f7b
--- /dev/null
+++ b/gdb-bz631158-cxx-this-lookup.patch
@@ -0,0 +1,14 @@
+https://bugzilla.redhat.com/show_bug.cgi?id=631158
+http://sourceware.org/ml/gdb-patches/2010-09/msg00229.html
+Subject: [patch] PR 11992 "Regression: C++ this scope sometimes does not work"
+
+--- ./gdb/c-exp.y 2010-09-11 19:34:17.000000000 +0200
++++ ./gdb/c-exp.y 2010-09-11 19:14:39.000000000 +0200
+@@ -2529,6 +2529,7 @@ yylex (void)
+
+ if (sym == NULL
+ && parse_language->la_language == language_cplus
++ && !is_a_field_of_this
+ && !lookup_minimal_symbol (tmp, NULL, NULL))
+ return UNKNOWN_CPP_NAME;
+
diff --git a/gdb.spec b/gdb.spec
index e386ce9..706fc82 100644
--- a/gdb.spec
+++ b/gdb.spec
@@ -36,7 +36,7 @@ Version: 7.1
# The release always contains a leading reserved number, start it at 1.
# `upstream' is not a part of `name' to stay fully rpm dependencies compatible for the testing.
-Release: 33%{?_with_upstream:.upstream}%{dist}
+Release: 34%{?_with_upstream:.upstream}%{dist}
License: GPLv3+ and GPLv3+ with exceptions and GPLv2+ and GPLv2+ with exceptions and GPL+ and LGPLv2+ and GFDL and BSD and Public Domain
Group: Development/Debuggers
@@ -542,6 +542,9 @@ Patch494: gdb-bz620012-slow-long-bt.patch
# Fix GDB regression for starting on r/o filesystem (BZ 602644).
Patch495: gdb-bz602644-ro-filesystem.patch
+# Fix symbol lookup misses methods of current class (BZ 631158, Sami Wagiaalla).
+Patch500: gdb-bz631158-cxx-this-lookup.patch
+
BuildRequires: ncurses-devel%{?_isa} texinfo gettext flex bison expat-devel%{?_isa}
Requires: readline%{?_isa}
BuildRequires: readline-devel%{?_isa}
@@ -849,6 +852,7 @@ rm -f gdb/jv-exp.c gdb/m2-exp.c gdb/objc-exp.c gdb/p-exp.c
%patch492 -p1
%patch494 -p1
%patch495 -p1
+%patch500 -p1
%patch415 -p1
%patch393 -p1
@@ -1181,6 +1185,9 @@ fi
%endif
%changelog
+* Sat Sep 11 2010 Jan Kratochvil <jan.kratochvil at redhat.com> - 7.1-34.fc13
+- Fix symbol lookup misses methods of current class (BZ 631158, Sami Wagiaalla).
+
* Thu Aug 19 2010 Jan Kratochvil <jan.kratochvil at redhat.com> - 7.1-33.fc13
- Fix crash on MI variable calling inferior function (BZ 610986).
More information about the scm-commits
mailing list