]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gdb/
authorJan Kratochvil <jan.kratochvil@redhat.com>
Mon, 28 Jun 2010 20:18:27 +0000 (20:18 +0000)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Mon, 28 Jun 2010 20:18:27 +0000 (20:18 +0000)
Fix PR c++/11703 and PR gdb/1448.
* c-exp.y (yylex) <last_was_coloncolon && first_was_coloncolon>: Add
FIRST_ITER check.

gdb/testsuite/
Test PR c++/11703 and PR gdb/1448.
* gdb.cp/namespace.exp (ptype ::C::NestedClass): Remove KFAIL for
gdb/1448.

gdb/ChangeLog
gdb/c-exp.y
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.cp/namespace.exp

index 196f89962dfcab1c22ec75654e50e055c323c230..78dcf55afe0636173423f5ad0ae38500ba420895 100644 (file)
@@ -1,3 +1,9 @@
+2010-06-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       Fix PR c++/11703 and PR gdb/1448.
+       * c-exp.y (yylex) <last_was_coloncolon && first_was_coloncolon>: Add
+       FIRST_ITER check.
+
 2010-06-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
 
        Fix modification of cplus_struct_default.
index 4db41033db41200bd7e49bffeee78cee04d68d7d..030554c9823da302a790f21f1dfd6af562750b39 100644 (file)
@@ -2553,7 +2553,7 @@ yylex (void)
     {
       token_and_value cc;
       memset (&cc, 0, sizeof (token_and_value));
-      if (first_was_coloncolon)
+      if (first_was_coloncolon && first_iter)
        {
          yylval = cc.value;
          return COLONCOLON;
index e187d045e9eec42bfec11747adc09137a8e0a4a0..05a51316ff2941ad3ffb3162e1666c374d758408 100644 (file)
@@ -1,3 +1,9 @@
+2010-06-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       Test PR c++/11703 and PR gdb/1448.
+       * gdb.cp/namespace.exp (ptype ::C::NestedClass): Remove KFAIL for
+       gdb/1448.
+
 2010-06-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
 
        * gdb.cp/virtbase.cc (class RTTI_base, class RTTI_data)
index 97521a17eb2b566615e7423b76e99c03071536de..95038fd7b818608944159d67f50988e8ddbda85c 100644 (file)
@@ -192,7 +192,6 @@ gdb_test "ptype CClass::NestedClass" "type = (class C::CClass::NestedClass \{\r\
 gdb_test "ptype NestedClass" "No symbol \"NestedClass\" in current context."
 gdb_test "ptype ::C::CClass" "type = class C::CClass \{\r\n  public:\r\n    int x;\r\n\}"
 gdb_test "ptype ::C::CClass::NestedClass" "type = class C::CClass::NestedClass \{\r\n  public:\r\n    int y;\r\n\}"
-setup_kfail "gdb/1448" "*-*-*"
 gdb_test "ptype ::C::NestedClass" "No symbol \"NestedClass\" in namespace \"C\"."
 gdb_test "ptype C::CClass" "No symbol \"CClass\" in namespace \"C::C\"."
 gdb_test "ptype C::CClass::NestedClass" "No type \"CClass\" within class or namespace \"C::C\"."