From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6397 invoked by alias); 20 Dec 2006 02:42:09 -0000 Received: (qmail 6389 invoked by uid 22791); 20 Dec 2006 02:42:08 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Wed, 20 Dec 2006 02:42:03 +0000 Received: from drow by nevyn.them.org with local (Exim 4.63) (envelope-from ) id 1GwrOy-0004lf-Tm; Tue, 19 Dec 2006 21:41:53 -0500 Date: Wed, 20 Dec 2006 02:42:00 -0000 From: Daniel Jacobowitz To: Nick Roberts Cc: Nikolay.Molchanov@Sun.COM, gdb@sourceware.org Subject: Re: Can I use -data-evaluate-expression to evaluate sin(4.1)? Message-ID: <20061220024152.GA18310@nevyn.them.org> Mail-Followup-To: Nick Roberts , Nikolay.Molchanov@Sun.COM, gdb@sourceware.org References: <45877ECA.9090207@sun.com> <17799.41335.712243.659292@kahikatea.snap.net.nz> <20061219163224.GA28686@nevyn.them.org> <17800.18177.281105.992978@kahikatea.snap.net.nz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <17800.18177.281105.992978@kahikatea.snap.net.nz> User-Agent: Mutt/1.5.13 (2006-08-11) 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: 2006-12/txt/msg00180.txt.bz2 On Wed, Dec 20, 2006 at 09:09:37AM +1300, Nick Roberts wrote: > > I'd have expected GDB to pick up the type > > from the debug info in that example. > > If the executable knows what kind of function sin is, then you would think that > GDB should be able to infer it from the executable. ISTR this has come up > before (just with "print") but that you expressed no surprise then. It's all up to what GCC decides to include :-) -- Daniel Jacobowitz CodeSourcery