From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22717 invoked by alias); 28 Jul 2008 20:29:57 -0000 Received: (qmail 22709 invoked by uid 22791); 28 Jul 2008 20:29:56 -0000 X-Spam-Check-By: sourceware.org Received: from main.gmane.org (HELO ciao.gmane.org) (80.91.229.2) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 28 Jul 2008 20:29:30 +0000 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1KNZLU-0006ob-5k for gdb@sources.redhat.com; Mon, 28 Jul 2008 20:29:28 +0000 Received: from mobius.qnx.com ([209.226.137.108]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 28 Jul 2008 20:29:28 +0000 Received: from aristovski by mobius.qnx.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 28 Jul 2008 20:29:28 +0000 To: gdb@sources.redhat.com From: Aleksandar Ristovski Subject: Re: PowerPC prologue analysis Date: Mon, 28 Jul 2008 21:08:00 -0000 Message-ID: References: <20080728201312.GA3911@caradoc.them.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) In-Reply-To: <20080728201312.GA3911@caradoc.them.org> 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-07/txt/msg00282.txt.bz2 Daniel Jacobowitz wrote: > On Mon, Jul 28, 2008 at 04:09:54PM -0400, Aleksandar Ristovski wrote: >> I am not very familiar with PowerPC ABI, but from what I gather reading >> the "function call" section, but can not see where is it stated that if >> r30 is saved, then r31 must be saved too? But again, I haven't studied the >> ABI very thoroughly and might be missing that line. > > Might want to look at this patch: > > http://sourceware.org/ml/gdb-patches/2007-12/msg00111.html > Thanks for the link! I briefly looked at the patch and it seems to address some of the things I am talking about (r30-r31 issue) but the comment still reads: + All gpr's from saved_gpr to gpr31 are saved (except during the + prologue). */ Is that in the ABI? I would think that if it is, then the code I am looking at is not according to it (gcc issue or just me not understanding powerpc assembly?).