From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 123956 invoked by alias); 23 Jul 2019 16:22:30 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 123588 invoked by uid 89); 23 Jul 2019 16:22:30 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-9.5 required=5.0 tests=AWL,BAYES_00,SPF_PASS autolearn=ham version=3.3.1 spammy=Commercial, lau, Lau, Amtsgericht X-HELO: mga04.intel.com Received: from mga04.intel.com (HELO mga04.intel.com) (192.55.52.120) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 23 Jul 2019 16:22:28 +0000 Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 23 Jul 2019 09:22:27 -0700 Received: from irsmsx151.ger.corp.intel.com ([163.33.192.59]) by FMSMGA003.fm.intel.com with ESMTP; 23 Jul 2019 09:22:26 -0700 Received: from irsmsx103.ger.corp.intel.com ([169.254.3.45]) by IRSMSX151.ger.corp.intel.com ([169.254.4.41]) with mapi id 14.03.0439.000; Tue, 23 Jul 2019 17:22:26 +0100 From: "Aktemur, Tankut Baris" To: Tom Tromey CC: "gdb@sourceware.org" , "Metzger, Markus T" Subject: RE: Infcall of a template function in a C++ program Date: Tue, 23 Jul 2019 16:22:00 -0000 Message-ID: References: <87imrxwzqi.fsf@tromey.com> In-Reply-To: <87imrxwzqi.fsf@tromey.com> Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2019-07/txt/msg00018.txt.bz2 * On Friday, July 19, 2019 10:12 PM, Tom Tromey wrote: >=20 > >>>>> ">" =3D=3D Aktemur, Tankut Baris w= rites: >=20 > >> The compiler is able to do the type inference, template function > >> instantiation, and function invocation based on the expressions `foo (= 5)` > >> and `foo ('a')`. When we start GDB and attempt to evaluate these > >> expressions, the corresponding functions are not resolved, though. >=20 > >> Opinions on how to address this problem properly are welcome. >=20 > Once upon a time, Sami Wagiaalla wrote some patches to do this. > I don't believe they ever went in. I don't remember why any more. > However, perhaps they could be resurrected. They were sent to > gdb-patches, years ago now. >=20 Thank you for the pointer. I think this is the patch you're referring to: https://sourceware.org/ml/gdb-patches/2010-07/msg00284.html We'll check the contents. -Baris Intel Deutschland GmbH Registered Address: Am Campeon 10-12, 85579 Neubiberg, Germany Tel: +49 89 99 8853-0, www.intel.de Managing Directors: Christin Eisenschmid, Gary Kershaw Chairperson of the Supervisory Board: Nicole Lau Registered Office: Munich Commercial Register: Amtsgericht Muenchen HRB 186928