From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31916 invoked by alias); 22 May 2008 16:00:13 -0000 Received: (qmail 31900 invoked by uid 22791); 22 May 2008 16:00:11 -0000 X-Spam-Check-By: sourceware.org Received: from qnxmail.qnx.com (HELO nimbus.ott.qnx.com) (209.226.137.76) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 22 May 2008 15:59:49 +0000 Received: from [10.42.100.129] (min.ott.qnx.com [10.42.100.129]) by nimbus.ott.qnx.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id LMGJ6J9J; Thu, 22 May 2008 11:59:46 -0400 Message-ID: <4835989F.3090900@qnx.com> Date: Thu, 22 May 2008 18:06:00 -0000 From: Aleksandar Ristovski User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) MIME-Version: 1.0 Newsgroups: gmane.comp.gdb.devel To: Daniel Jacobowitz , gdb@sourceware.org Subject: Re: Frame lost after 'leave' and before 'ret' instruction on i386? References: <482DA814.7030703@qnx.com> <20080516155828.GA31038@caradoc.them.org> <48358355.7050500@qnx.com> <20080522143936.GA32221@caradoc.them.org> <48358860.5010703@qnx.com> <20080522150458.GA1274@caradoc.them.org> In-Reply-To: <20080522150458.GA1274@caradoc.them.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed 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/msg00161.txt.bz2 Message-ID: <20080522180600.DWsOtHoVFK_ms7v1s3vtQJWuVZeKf07Jj8qQxj-HNDI@z> Daniel Jacobowitz wrote: > On Thu, May 22, 2008 at 10:51:12AM -0400, Aleksandar Ristovski wrote: >> So from what I can see, they all rely on symbol info (find_pc_partial_function). > > Generally, so that you don't go marching off into the code of another > function. If you only look at instructions forwards, and do not skip > any branches, you can probably do without it. > Am I again missing something big or is this really being called only from breakpoint.c? I would imagine it should be called from other spots as well. I find handle_inferior_status quite complicated and do not fully understand it, but shouldn't it be called from there as well (when stepi-ing, we need to know if the frame can be created or not).