From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11955 invoked by alias); 26 Sep 2008 19:09:50 -0000 Received: (qmail 11946 invoked by uid 22791); 26 Sep 2008 19:09:50 -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; Fri, 26 Sep 2008 19:09:00 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id E6AC010CF4; Fri, 26 Sep 2008 19:08:57 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id C613710CE6; Fri, 26 Sep 2008 19:08:57 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.69) (envelope-from ) id 1KjIgS-0002be-N8; Fri, 26 Sep 2008 15:08:56 -0400 Date: Fri, 26 Sep 2008 19:09:00 -0000 From: Daniel Jacobowitz To: Aleksandar Ristovski Cc: gdb-patches@sources.redhat.com Subject: Re: [patch] Set register even when no frame exists Message-ID: <20080926190856.GA9386@caradoc.them.org> Mail-Followup-To: Aleksandar Ristovski , gdb-patches@sources.redhat.com References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2008-05-11) X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2008-09/txt/msg00523.txt.bz2 On Fri, Sep 26, 2008 at 01:51:47PM -0400, Aleksandar Ristovski wrote: > Simple solution (see the patch attached) is to call "get_current_frame" which will effectively create a sentinel frame.To me having only sentinel frame at this point in game makes a lot of sense. This doesn't relate to the current frame. The problem is that we actually identify some frames using null_frame_id, but also overload it to mean "there is no frame". I posted a workaround patch last time this came up though I can't find it right now. There's also a description of the general problem at http://sourceware.org/ml/gdb/2006-05/msg00109.html. I wanted to come back to it but I'm currently still stuck on the inlining patches; only one frame unwinder change at a time for me. -- Daniel Jacobowitz CodeSourcery