From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24616 invoked by alias); 22 May 2008 18:06:39 -0000 Received: (qmail 24607 invoked by uid 22791); 22 May 2008 18:06:38 -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; Thu, 22 May 2008 18:06:15 +0000 Received: from [127.0.0.1] (bluesmobile.specifix.com [216.129.118.140]) by bluesmobile.specifix.com (Postfix) with ESMTP id CC2E53C03C; Thu, 22 May 2008 11:06:13 -0700 (PDT) Subject: Re: Frame lost after 'leave' and before 'ret' instruction on i386? From: Michael Snyder To: Aleksandar Ristovski Cc: Daniel Jacobowitz , gdb@sourceware.org In-Reply-To: <48358860.5010703@qnx.com> References: <482DA814.7030703@qnx.com> <20080516155828.GA31038@caradoc.them.org> <48358355.7050500@qnx.com> <20080522143936.GA32221@caradoc.them.org> <48358860.5010703@qnx.com> Content-Type: text/plain Date: Fri, 23 May 2008 17:23:00 -0000 Message-Id: <1211479573.3601.84.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.10.3 (2.10.3-7.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-05/txt/msg00164.txt.bz2 On Thu, 2008-05-22 at 10:51 -0400, Aleksandar Ristovski wrote: > > So from what I can see, they all rely on symbol info (find_pc_partial_function). > > Apparently I am missing something: if I were to write an "in_function_epilogue_p" > for i386, why would I need the debug info? As a minimum, I want to > check if we are at one of 'ret' instructions - no debug info needed. We've never given the same level of attention to epilogues as we have for prologues. I'm not aware of anyone ever having added an epilogue disassembler a la 'scan_prologue'. If you wanted to do that -- typically for scan_prologue, we check to see if we have enough symbol info first, and only resort to instruction parsing if we have to.