From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25208 invoked by alias); 30 Jan 2007 13:11:01 -0000 Received: (qmail 25193 invoked by uid 22791); 30 Jan 2007 13:11:00 -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; Tue, 30 Jan 2007 13:10:56 +0000 Received: from drow by nevyn.them.org with local (Exim 4.63) (envelope-from ) id 1HBslB-00056J-RA; Tue, 30 Jan 2007 08:10:53 -0500 Date: Tue, 30 Jan 2007 13:11:00 -0000 From: Daniel Jacobowitz To: Vincent De Groote Cc: gdb@sourceware.org Subject: Re: Nexted function context Message-ID: <20070130131053.GA18630@nevyn.them.org> Mail-Followup-To: Vincent De Groote , gdb@sourceware.org References: <20070130121300.GA17458@nevyn.them.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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: 2007-01/txt/msg00352.txt.bz2 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