From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6954 invoked by alias); 21 Nov 2012 18:32:32 -0000 Received: (qmail 6944 invoked by uid 22791); 21 Nov 2012 18:32:30 -0000 X-SWARE-Spam-Status: No, hits=-6.5 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,RCVD_IN_DNSWL_HI,RCVD_IN_HOSTKARMA_W,RP_MATCHES_RCVD,SPF_HELO_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 21 Nov 2012 18:32:18 +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 (8.14.4/8.14.4) with ESMTP id qALIWH2h000872 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 21 Nov 2012 13:32:17 -0500 Received: from host2.jankratochvil.net (ovpn-116-39.ams2.redhat.com [10.36.116.39]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id qALIWCVM013703 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Wed, 21 Nov 2012 13:32:15 -0500 Date: Wed, 21 Nov 2012 18:32:00 -0000 From: Jan Kratochvil To: ali_anwar Cc: gdb-patches@sourceware.org, keiths@redhat.com Subject: Re: warning: RTTI symbol not found for class Message-ID: <20121121183212.GA30560@host2.jankratochvil.net> References: <50AD181E.1050607@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <50AD181E.1050607@codesourcery.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-IsSubscribed: yes 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 X-SW-Source: 2012-11/txt/msg00581.txt.bz2 Hello Ali, On Wed, 21 Nov 2012 19:06:22 +0100, ali_anwar wrote: > While debugging a cpp demo (containing the std::cout call) when I > issue "p std::cout", I get following warning: "warning: RTTI symbol > not found for class 'std::ostream'". I do not have it reproducible. When you have not provided a GDB testcase could you at least provide OS and a reproducer there? This way the patch does not fix anything to me. Fedora 18 x86_64 GNU gdb (GDB) 7.5.50.20121120-cvs cat >cout.C < int main () { std::cout << "foo" << std::endl; } HERE g++ -o cout cout.C -Wall -g gdb -q ./cout -ex start -ex 'p std::cout' -ex c -ex q $1 = { >> = , _vptr.basic_ostream = 0x0} ( does not look great but this patch does not fix it) > Do we have any fix for this issue if not then is it ok to have this > work around until we get a proper fix? It has a regression: -PASS: gdb.cp/bs15503.exp: print s.length() -PASS: gdb.cp/bs15503.exp: print s[0] -PASS: gdb.cp/bs15503.exp: print s[s.length()-1] +FAIL: gdb.cp/bs15503.exp: print s.length() +FAIL: gdb.cp/bs15503.exp: print s[0] +FAIL: gdb.cp/bs15503.exp: print s[s.length()-1] -PASS: gdb.cp/bs15503.exp: print (const char *) s.substr(0,4) -PASS: gdb.cp/bs15503.exp: print (const char *) (s=s.substr(0,4)) +FAIL: gdb.cp/bs15503.exp: print (const char *) s.substr(0,4) +FAIL: gdb.cp/bs15503.exp: print (const char *) (s=s.substr(0,4)) It has also a second regression but I understand that can be ignored as it just tests what you have changed: -PASS: gdb.cp/no-dmgl-verbose.exp: DMGL_VERBOSE-demangled f(std::string) is not defined +FAIL: gdb.cp/no-dmgl-verbose.exp: DMGL_VERBOSE-demangled f(std::string) is not defined I do not find the patch finished for a review when it still regresses. (It regresses on Fedora 18 x86_64 in the case it does not regress for you.) Thanks, Jan