From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9437 invoked by alias); 14 Nov 2007 21:34:53 -0000 Received: (qmail 9429 invoked by uid 22791); 14 Nov 2007 21:34:53 -0000 X-Spam-Check-By: sourceware.org Received: from main.gmane.org (HELO ciao.gmane.org) (80.91.229.2) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 14 Nov 2007 21:34:50 +0000 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1IsPsj-0001NA-T9 for gdb@sources.redhat.com; Wed, 14 Nov 2007 21:34:45 +0000 Received: from 77.246.241.246 ([77.246.241.246]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 14 Nov 2007 21:34:45 +0000 Received: from ghost by 77.246.241.246 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 14 Nov 2007 21:34:45 +0000 To: gdb@sources.redhat.com From: Vladimir Prus Subject: Re: Multiple breakpoint locations Date: Wed, 14 Nov 2007 21:34:00 -0000 Message-ID: References: <18233.63439.953202.586908@kahikatea.snap.net.nz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit User-Agent: KNode/0.10.4 X-IsSubscribed: yes 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 X-SW-Source: 2007-11/txt/msg00145.txt.bz2 Jim Blandy wrote: > > Andreas Schwab writes: >> It is valid for function template instantiations to only differ in the >> return type. See >> for an example. > > Following that link, I think I now better appreciate why full C++ > support in GDB is basically impossible: in order to decide which 'fun' > template the call in 'main' refers to, one must try to instantiate > each template and type-check the resulting code. So GDB would need to > essentially incorporate a full C++ front end. Or have GCC export a library that GDB can use -- which seems right approach. Generally, overload resolution in C++ involves instantiating templates and evaluating constant expressions and yes, that requires knowing lots of things. - Volodya