From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9224 invoked by alias); 28 Jan 2008 20:20:03 -0000 Received: (qmail 9212 invoked by uid 22791); 28 Jan 2008 20:20:03 -0000 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 28 Jan 2008 20:19:42 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id 75EA398234; Mon, 28 Jan 2008 20:19:40 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id 57CFD98151; Mon, 28 Jan 2008 20:19:40 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.68) (envelope-from ) id 1JJaSB-0003Ak-Gi; Mon, 28 Jan 2008 15:19:39 -0500 Date: Mon, 28 Jan 2008 20:20:00 -0000 From: Daniel Jacobowitz To: "William K. Foster" Cc: gdb@sourceware.org Subject: Re: Step outer function call Message-ID: <20080128201939.GA12178@caradoc.them.org> Mail-Followup-To: "William K. Foster" , gdb@sourceware.org References: <479E332C.7080205@sinavigator.com> <20080128200951.GA11321@caradoc.them.org> <479E3744.1050500@sinavigator.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <479E3744.1050500@sinavigator.com> User-Agent: Mutt/1.5.17 (2007-12-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: 2008-01/txt/msg00293.txt.bz2 On Mon, Jan 28, 2008 at 12:12:52PM -0800, William K. Foster wrote: > Hi, > > I don't know much about the debug formats, but it seems to me that since > the debugger knows what line number it is on in the source code, it > should be able to locate the last function call on that line number and > enter it for this hypothetical command that many people seem to want. > > Am I missing something? Yes, generally we can't locate the last function call. The problem here is "last" - a source line can be broken into many pieces and contain arbitrary flow control. We'd have to essentially uncompile the code to figure it out. -- Daniel Jacobowitz CodeSourcery