From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9316 invoked by alias); 19 May 2009 13:33:46 -0000 Received: (qmail 9304 invoked by uid 22791); 19 May 2009 13:33:45 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 19 May 2009 13:33:39 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 05FC92BAD45; Tue, 19 May 2009 09:33:37 -0400 (EDT) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id IAeOrsPnRU1r; Tue, 19 May 2009 09:33:36 -0400 (EDT) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id BC6542BAD43; Tue, 19 May 2009 09:33:36 -0400 (EDT) Received: by joel.gnat.com (Postfix, from userid 1000) id 8BD76F5962; Tue, 19 May 2009 15:33:31 +0200 (CEST) Date: Tue, 19 May 2009 13:33:00 -0000 From: Joel Brobecker To: Florent DEFAY Cc: gdb@sourceware.org Subject: Re: scan_prologue/next, misunderstanding Message-ID: <20090519133331.GX17566@adacore.com> References: <8502af3c0905190536m326f1de9n6d3da92eb659bd42@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8502af3c0905190536m326f1de9n6d3da92eb659bd42@mail.gmail.com> User-Agent: Mutt/1.5.18 (2008-05-17) 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: 2009-05/txt/msg00131.txt.bz2 > I got inspiration from avr-tdep.c. I still have problems with 'next'. > I set a 'printf' in the function skip_prologue and I can tell it is > never used. Just a first guess: I haven't looked at the code itself, but there are usually more than one unwinders; for instance, there is a dwarf unwinder that reads the frame info data from the dwarf data and use that exclusively to do the unwinding. This might explain why the AVR unwinder based on prologue analysis doesn't get called. -- Joel