From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7937 invoked by alias); 30 Jan 2007 13:39:13 -0000 Received: (qmail 7926 invoked by uid 22791); 30 Jan 2007 13:39:12 -0000 X-Spam-Check-By: sourceware.org Received: from outmx019.isp.belgacom.be (HELO outmx019.isp.belgacom.be) (195.238.4.200) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 30 Jan 2007 13:39:06 +0000 Received: from outmx019.isp.belgacom.be (localhost [127.0.0.1]) by outmx019.isp.belgacom.be (8.12.11.20060308/8.12.11/Skynet-OUT-2.22) with ESMTP id l0UDcxWs027365 for ; Tue, 30 Jan 2007 14:39:00 +0100 (envelope-from ) Received: from [192.168.1.2] (12.192-200-80.adsl-dyn.isp.belgacom.be [80.200.192.12]) by outmx019.isp.belgacom.be (8.12.11.20060308/8.12.11/Skynet-OUT-2.22) with ESMTP id l0UDcwHg027348; Tue, 30 Jan 2007 14:38:58 +0100 (envelope-from ) Date: Tue, 30 Jan 2007 13:39:00 -0000 From: Vincent De Groote To: Daniel Jacobowitz cc: gdb@sourceware.org Subject: Re: Nexted function context Message-ID: <95C90D5BF32D5A84247A1DF3@[192.168.1.2]> In-Reply-To: <20070130131053.GA18630@nevyn.them.org> References: <20070130121300.GA17458@nevyn.them.org> <20070130131053.GA18630@nevyn.them.org> X-Mailer: Mulberry/4.0.7 (Win32) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline 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-01/txt/msg00353.txt.bz2 I'm using version 4.1.1 on linux (gentoo) Vincent De Groote --On 30 January 2007 08:10 -0500 Daniel Jacobowitz wrote: > On Tue, Jan 30, 2007 at 12:49:54PM +0000, Vincent De Groote wrote: >> when single stepping into add_something function, >> doing "p value" or "p result" reports the same message "No symbol >> "xxxxx" in current context". > > What GCC version and platform are you using? On x86_64-linux using GCC > 4.1.2, I can print them both just fine. Probably older versions had bad > debug info, as Mark suggests. > >> I also looked for a way of setting a breakpoint into a nested function, >> but never succeeds. > > Yes, I don't see any way to do this :-( > > -- > Daniel Jacobowitz > CodeSourcery