From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 491 invoked by alias); 12 Aug 2008 14:56:07 -0000 Received: (qmail 480 invoked by uid 22791); 12 Aug 2008 14:56:07 -0000 X-Spam-Check-By: sourceware.org Received: from cantor2.suse.de (HELO mx2.suse.de) (195.135.220.15) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 12 Aug 2008 14:55:20 +0000 Received: from Relay1.suse.de (relay-ext.suse.de [195.135.221.8]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx2.suse.de (Postfix) with ESMTP id A19D945E65; Tue, 12 Aug 2008 16:55:17 +0200 (CEST) From: Andreas Schwab To: =?iso-8859-1?Q?Andr=E9_P=F6nitz?= Cc: gdb@sourceware.org Subject: Re: problem with gdb's 'call' References: <200808121636.43694.apoenitz@trolltech.com> X-Yow: Boy, am I glad it's only 1971... Date: Tue, 12 Aug 2008 19:30:00 -0000 In-Reply-To: <200808121636.43694.apoenitz@trolltech.com> (=?iso-8859-1?Q?=22Andr=E9_P=F6nitz=22's?= message of "Tue, 12 Aug 2008 16:36:40 +0200") Message-ID: User-Agent: Gnus/5.110009 (No Gnus v0.9) Emacs/22.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit 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: 2008-08/txt/msg00164.txt.bz2 André Pönitz writes: > How can I quote the function name such that it will be acceptable by the > gdb parser [actually the function that I'd like to call in reality looks more like > ns::foo((ns::type*)0x1234). I am not sure this is even 'quotable'] For template functions you the demanged name includes the return type. (gdb) call 'int f Andreas. -- Andreas Schwab, SuSE Labs, schwab@suse.de SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."