Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Jan Kratochvil <jan.kratochvil@redhat.com>
To: Tom Tromey <tromey@redhat.com>
Cc: gdb-patches@sourceware.org, Sami Wagiaalla <swagiaal@redhat.com>
Subject: Re: [patch] Fix C++ leading :: (PR c++/11703 and PR gdb/1448)
Date: Mon, 28 Jun 2010 20:19:00 -0000	[thread overview]
Message-ID: <20100628201945.GA21190@host0.dyn.jankratochvil.net> (raw)
In-Reply-To: <m3ocevxb90.fsf@fleche.redhat.com>

On Mon, 28 Jun 2010 20:28:27 +0200, Tom Tromey wrote:
> >>>>> "Jan" == Jan Kratochvil <jan.kratochvil@redhat.com> writes:
> Jan> 2010-06-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
> Jan> 	Fix PR c++/11703 and PR gdb/1448.
> Jan> 	* c-exp.y (yylex) <last_was_coloncolon && first_was_coloncolon>: Add
> Jan> 	FIRST_ITER check.
> 
> Jan> 2010-06-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
> Jan> 	Test PR c++/11703 and PR gdb/1448.
> Jan> 	* gdb.cp/namespace.exp (whatis ::C::cOtherFileVar)
> Jan> 	(print ::C::cOtherFileVar)
> Jan> 	(print ::C::OtherFileClass::cOtherFileClassVar): Remove KFAIL for
> Jan> 	c++/11703.
> Jan> 	(ptype ::C::NestedClass): Remove KFAIL for gdb/1448.
> 
> This is ok.  Thanks for fixing this.

Checked-in.  Simlified patches order so the gdb/testsuite/ change is reduced.


Thanks,
Jan


http://sourceware.org/ml/gdb-cvs/2010-06/msg00197.html

--- src/gdb/ChangeLog	2010/06/28 20:12:52	1.11942
+++ src/gdb/ChangeLog	2010/06/28 20:18:26	1.11943
@@ -1,5 +1,11 @@
 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.
 	* dwarf2read.c (dwarf2_add_member_fn) <no DW_AT_vtable_elem_location>:
 	Call ALLOCATE_CPLUS_STRUCT_TYPE.
--- src/gdb/c-exp.y	2010/05/07 14:46:25	1.75
+++ src/gdb/c-exp.y	2010/06/28 20:18:26	1.76
@@ -2553,7 +2553,7 @@
     {
       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;
--- src/gdb/testsuite/ChangeLog	2010/06/28 20:12:52	1.2359
+++ src/gdb/testsuite/ChangeLog	2010/06/28 20:18:26	1.2360
@@ -1,5 +1,11 @@
 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)
 	(main) <rtti_data>: New.
 	* gdb.cp/virtbase.exp (print rtti_data): New.
--- src/gdb/testsuite/gdb.cp/namespace.exp	2010/06/01 18:18:35	1.19
+++ src/gdb/testsuite/gdb.cp/namespace.exp	2010/06/28 20:18:27	1.20
@@ -192,7 +192,6 @@
 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\"."


      reply	other threads:[~2010-06-28 20:19 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-26  8:22 Jan Kratochvil
2010-06-28 18:28 ` Tom Tromey
2010-06-28 20:19   ` Jan Kratochvil [this message]

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=20100628201945.GA21190@host0.dyn.jankratochvil.net \
    --to=jan.kratochvil@redhat.com \
    --cc=gdb-patches@sourceware.org \
    --cc=swagiaal@redhat.com \
    --cc=tromey@redhat.com \
    /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