From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12183 invoked by alias); 12 Mar 2010 14:22:35 -0000 Received: (qmail 12170 invoked by uid 22791); 12 Mar 2010 14:22:34 -0000 X-SWARE-Spam-Status: No, hits=-8.2 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,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; Fri, 12 Mar 2010 14:22:29 +0000 Received: from int-mx08.intmail.prod.int.phx2.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o2CEMRVv022445 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 12 Mar 2010 09:22:27 -0500 Received: from qcore.mollernet.net (vpn-250-191.phx2.redhat.com [10.3.250.191]) by int-mx08.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o2CEMQHK025323; Fri, 12 Mar 2010 09:22:27 -0500 Message-ID: <4B9A4E22.8070905@redhat.com> Date: Fri, 12 Mar 2010 14:22:00 -0000 From: Chris Moller User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1b3pre) Gecko/20090513 Fedora/3.0-2.3.beta2.fc11 Thunderbird/3.0b2 MIME-Version: 1.0 To: tromey@redhat.com CC: gdb-patches@sourceware.org Subject: Re: pr9065 patch References: <4B96B1C6.9050907@redhat.com> In-Reply-To: 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: 2010-03/txt/msg00446.txt.bz2 On 03/11/10 16:32, Tom Tromey wrote: > > I guess the problem is that type_id::name is an inlined function with no > out-of-line instance in libstdc++. So, there is no way to call it. > Yeah, I tried it anyway with a few variation of find_function_in_inferior ("std::type_info.name",...). Didn't work, which is why I was using a fake-out approach. > > Chris> +static struct value * > Chris> +evaluate_subexp_for_typeid_type (struct expression *exp, int *pos) > Chris> + __attribute__ ((noinline)); > > Just remove this. For future reference, you can't use __attribute__ > unconditionally in (most of) gdb, you have to hide it behind a define. > See defs.h. > Yeah, that was just there for debugging to keep the fcn from being inlined--I meant to take it out before making the patch. I'm incorporating what I can of the rest of your comments, and trying to figure out how to do a "not-outlined method."