From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24237 invoked by alias); 28 Jan 2008 22:36:54 -0000 Received: (qmail 24228 invoked by uid 22791); 28 Jan 2008 22:36:54 -0000 X-Spam-Check-By: sourceware.org Received: from bluesmobile.specifix.com (HELO bluesmobile.specifix.com) (216.129.118.140) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 28 Jan 2008 22:36:32 +0000 Received: from [127.0.0.1] (bluesmobile.specifix.com [216.129.118.140]) by bluesmobile.specifix.com (Postfix) with ESMTP id 0B22D3C728; Mon, 28 Jan 2008 14:36:30 -0800 (PST) Subject: Re: Step outer function call From: Michael Snyder To: wkf@sinavigator.com Cc: gdb@sourceware.org In-Reply-To: <479E3744.1050500@sinavigator.com> References: <479E332C.7080205@sinavigator.com> <20080128200951.GA11321@caradoc.them.org> <479E3744.1050500@sinavigator.com> Content-Type: text/plain Date: Mon, 28 Jan 2008 22:36:00 -0000 Message-Id: <1201559789.3263.196.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.10.3 (2.10.3-4.fc7) Content-Transfer-Encoding: 7bit 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/msg00296.txt.bz2 On Mon, 2008-01-28 at 12:12 -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? Yeah. GDB doesn't do that sort of thing, involving basically disassembling the instructions and grokking what they do. Well it does, in some special and limited circumstances when it can't be avoided, but not in general. And those cases where it does it are very fragile and difficult to maintain. In general we'd like to have gdb do that kind of thing less, not more.