From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10900 invoked by alias); 8 Dec 2004 16:34:53 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 10882 invoked from network); 8 Dec 2004 16:34:47 -0000 Received: from unknown (HELO nevyn.them.org) (66.93.172.17) by sourceware.org with SMTP; 8 Dec 2004 16:34:47 -0000 Received: from drow by nevyn.them.org with local (Exim 4.34 #1 (Debian)) id 1Cc4m2-0000VH-LO; Wed, 08 Dec 2004 11:34:42 -0500 Date: Wed, 08 Dec 2004 16:51:00 -0000 From: Daniel Jacobowitz To: Joel Brobecker Cc: gdb-patches@sources.redhat.com Subject: Re: [RFC] pb unwinding from pthread_cond_wait on ppc-linux (RFA?) Message-ID: <20041208163442.GA30584@nevyn.them.org> Mail-Followup-To: Joel Brobecker , gdb-patches@sources.redhat.com References: <20041208155633.GX2524@adacore.com> <20041208161420.GA29978@nevyn.them.org> <20041208163211.GY2524@adacore.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20041208163211.GY2524@adacore.com> User-Agent: Mutt/1.5.5.1+cvs20040105i X-SW-Source: 2004-12/txt/msg00240.txt.bz2 On Wed, Dec 08, 2004 at 05:32:11PM +0100, Joel Brobecker wrote: > Gah? Do I understand correctly that the code jumps to 0xffed01c > only to return back? Precisely! That's what I thought it would be. It's trying to load lr with the address of @+16, so that the function can access PIC data using PC-relative displacement. Take a look at i386-tdep.c. It handles calls to a return sequence specially in the prologue analyzer. That may be a better choice than blindly allowing calls. (Does this obsolete the "branch in first three insns" check? I'm not sure if there are other possible reasons for that.) -- Daniel Jacobowitz