From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5269 invoked by alias); 24 Jan 2006 22:55:48 -0000 Received: (qmail 5260 invoked by uid 22791); 24 Jan 2006 22:55:47 -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, 24 Jan 2006 22:55:44 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1F1X4g-0007vc-PO; Tue, 24 Jan 2006 17:55:42 -0500 Date: Tue, 24 Jan 2006 22:55:00 -0000 From: Daniel Jacobowitz To: NZG Cc: gdb-patches@sourceware.org Subject: Re: request for structure documentation Message-ID: <20060124225542.GA30437@nevyn.them.org> Mail-Followup-To: NZG , gdb-patches@sourceware.org References: <200601241629.32011.ngustavson@emacinc.com> <200601241651.16514.ngustavson@emacinc.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200601241651.16514.ngustavson@emacinc.com> 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-01/txt/msg00391.txt.bz2 On Tue, Jan 24, 2006 at 04:51:16PM -0600, NZG wrote: > A more specific question: > > My code appears to be fixable by either causing the architecture specific > unwind code to return null in frame 0, or by allowing unwind to occur here, > but then setting the id to invalid on the unwound frame, thus preventing it > from printing and stopping the chain of get_prev_frames. > > But which is correct? This seems unclear from the comments When you look at a frame, and determine that it is the last frame (unwinding should stop), return an invalid this_id. The problem is presumably that you're failing to make that decision. -- Daniel Jacobowitz CodeSourcery