From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19231 invoked by alias); 23 Feb 2006 21:00:11 -0000 Received: (qmail 19221 invoked by uid 22791); 23 Feb 2006 21:00:10 -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; Thu, 23 Feb 2006 21:00:09 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1FCNZH-0000ec-99; Thu, 23 Feb 2006 16:00:07 -0500 Date: Thu, 23 Feb 2006 21:02:00 -0000 From: Daniel Jacobowitz To: Jason Kraftcheck Cc: gdb-patches@sources.redhat.com Subject: Re: list/edit command on frame with available symtab Message-ID: <20060223210007.GB2353@nevyn.them.org> Mail-Followup-To: Jason Kraftcheck , gdb-patches@sources.redhat.com References: <43FE018B.2050502@cae.wisc.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <43FE018B.2050502@cae.wisc.edu> User-Agent: Mutt/1.5.8i X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2006-02/txt/msg00441.txt.bz2 On Thu, Feb 23, 2006 at 12:40:11PM -0600, Jason Kraftcheck wrote: > If there is no symtab for the current frame, traverse up the stack > looking for a frame with a symtab. This may at first seem like a > gratuitous feature (and perhaps it is), but I find it is convenient when > working with an application that uses third-party libraries. Typically > whatever code I'm working on has debug symbols while whatever > third-party code I'm calling does not. And I'm much more interested in > seeing where the process was in my code at the time a fault occurred. I > don't think this change will be a problem for anyone, as the previous > behavior was to print an error if there was no symtab. > > > 2006-02-23 Jason Kraftcheck > > * stack.c (set_current_sal_from_frame): If list or edit command > is invoked for a frame without a symtab, move up the stack to > the neareast frame with a symtab. I'm not sure this is a good idea, but in any case, is that really what's going on? I already get successful "list", and edit opens a file named "unknown", if the parent frame has line info. -- Daniel Jacobowitz CodeSourcery