From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24433 invoked by alias); 30 Jul 2015 20:56:47 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 24424 invoked by uid 89); 30 Jul 2015 20:56:47 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Thu, 30 Jul 2015 20:56:46 +0000 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (Postfix) with ESMTPS id 65DD7A2C13; Thu, 30 Jul 2015 20:56:45 +0000 (UTC) Received: from valrhona.uglyboxes.com (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t6UKuihQ009667 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 30 Jul 2015 16:56:44 -0400 Message-ID: <55BA8F8C.8080301@redhat.com> Date: Thu, 30 Jul 2015 20:56:00 -0000 From: Keith Seitz User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Sandra Loosemore , gdb-patches@sourceware.org Subject: Re: [committed, testsuite] Reapply fix for gdb.cp/var-tag.exp C++ failures References: <55BA74C2.8050800@codesourcery.com> In-Reply-To: <55BA74C2.8050800@codesourcery.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2015-07/txt/msg00919.txt.bz2 On 07/30/2015 12:02 PM, Sandra Loosemore wrote: > FAIL: gdb.cp/var-tag.exp: before start: c++: ptype E > FAIL: gdb.cp/var-tag.exp: before start: c++: ptype ee > FAIL: gdb.cp/var-tag.exp: before start: c++: ptype EE > FAIL: gdb.cp/var-tag.exp: before start: c++: ptype E2 > FAIL: gdb.cp/var-tag.exp: in main: c++: ptype E > FAIL: gdb.cp/var-tag.exp: in main: c++: ptype ee > FAIL: gdb.cp/var-tag.exp: in main: c++: ptype EE > FAIL: gdb.cp/var-tag.exp: in main: c++: ptype E2 > FAIL: gdb.cp/var-tag.exp: in C::f: c++: ptype E > FAIL: gdb.cp/var-tag.exp: in C::f: c++: ptype ee > FAIL: gdb.cp/var-tag.exp: in C::f: c++: ptype EE > FAIL: gdb.cp/var-tag.exp: in C::f: c++: ptype E2 Yeah, GCC5 is now outputting (into DWARF) the underlying types used to implement the enum. I had a patch lying around, but I forgot about it. Thank you for doing this. > diff --git a/gdb/testsuite/gdb.cp/var-tag.exp b/gdb/testsuite/gdb.cp/var-tag.exp > index 30aab99..60379e9 100644 > --- a/gdb/testsuite/gdb.cp/var-tag.exp > +++ b/gdb/testsuite/gdb.cp/var-tag.exp > @@ -28,13 +28,18 @@ if {[prepare_for_testing $testfile.exp $testfile \ > > proc do_global_tests {lang} { > set invalid_print "Attempt to use a type name as an expression" > - set ptypefmt "type = (class|enum|union|struct) %s {.*}" > + > + if {$lang == "c++"} { > + set opt_underlying "(: unsigned int )?" > + } else { > + set opt_underlying "" Missing '}' ? > + set ptypefmt "type = (class|enum|union|struct) %s $opt_underlying{.*}" Keith