From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5578 invoked by alias); 26 Nov 2012 20:47:22 -0000 Received: (qmail 5565 invoked by uid 22791); 26 Nov 2012 20:47:21 -0000 X-SWARE-Spam-Status: No, hits=-4.7 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL X-Spam-Check-By: sourceware.org Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 26 Nov 2012 20:47:16 +0000 Received: from svr-orw-fem-01.mgc.mentorg.com ([147.34.98.93]) by relay1.mentorg.com with esmtp id 1Td5aF-0001BW-NN from Ali_Anwar@mentor.com ; Mon, 26 Nov 2012 12:47:15 -0800 Received: from SVR-ORW-FEM-04.mgc.mentorg.com ([147.34.97.41]) by svr-orw-fem-01.mgc.mentorg.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675); Mon, 26 Nov 2012 12:47:15 -0800 Received: from [137.202.157.121] (147.34.91.1) by SVR-ORW-FEM-04.mgc.mentorg.com (147.34.97.41) with Microsoft SMTP Server (TLS) id 14.1.289.1; Mon, 26 Nov 2012 12:47:14 -0800 Message-ID: <50B3D4D3.7040603@codesourcery.com> Date: Mon, 26 Nov 2012 20:47:00 -0000 From: ali_anwar User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.28) Gecko/20120313 Thunderbird/3.1.20 MIME-Version: 1.0 To: Tom Tromey CC: Jan Kratochvil , , Subject: Re: warning: RTTI symbol not found for class References: <50AD181E.1050607@codesourcery.com> <20121121183212.GA30560@host2.jankratochvil.net> <50B3BF10.7070508@codesourcery.com> <87wqx8f9sq.fsf@fleche.redhat.com> In-Reply-To: <87wqx8f9sq.fsf@fleche.redhat.com> Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit 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/msg00690.txt.bz2 On 11/27/2012 12:23 AM, Tom Tromey wrote: >>>>>> "Ali" == ali anwar writes: > > Ali> gdb -q ./cout -ex start -ex s -ex fin -ex c -ex q > Ali> [snip] > Ali> 2 int main () { std::cout<< "foo"<< std::endl; } > Ali> Value returned is $1 = warning: RTTI symbol not found for class > Ali> std::ostream' > > What would be best is a recipe for recreating the bug that does not rely > on the system libstdc++ or its debuginfo or lack thereof. > Both this short test and the bs15503 test are exposed to the system > libraries in this way. > Yes, it seems so. I faced no failure on Ubuntu 12.04 without the change. But after the patch I faced the same 5 errors that Jan pointed. Following addition to the earlier patch removes all the regressions. --- gdb/dwarf2read.c 26 Nov 2012 15:54:29 -0000 1.714 +++ gdb/dwarf2read.c 26 Nov 2012 20:43:59 -0000 @@ -7585,7 +7585,7 @@ else { demangled = cplus_demangle (mangled, - (DMGL_PARAMS | DMGL_ANSI + (DMGL_PARAMS | DMGL_ANSI | DMGL_VERBOSE I will try to recreate the bug without using libstdc++. Thanks, -Ali