RE: Infcall of a template function in a C++ program

"Aktemur, Tankut Baris" <[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <B98F7326B8E238409968F562D326E1A90D04ACAD@IRSMSX103.ger.corp.intel.com>
* On Friday, July 19, 2019 10:12 PM, Tom Tromey wrote:
> 
> >>>>> ">" == Aktemur, Tankut Baris <[email protected]> writes:
> 
> >> 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.
> 
> >> Opinions on how to address this problem properly are welcome.
> 
> 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.
> 

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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.