From: Daniel Jacobowitz <drow@false.org>
To: Aleksandar Ristovski <aristovski@qnx.com>
Cc: gdb@sources.redhat.com
Subject: Re: PowerPC prologue analysis
Date: Mon, 28 Jul 2008 20:29:00 -0000 [thread overview]
Message-ID: <20080728201312.GA3911@caradoc.them.org> (raw)
In-Reply-To: <g6l92j$330$1@ger.gmane.org>
On Mon, Jul 28, 2008 at 04:09:54PM -0400, Aleksandar Ristovski wrote:
> Hello,
>
> In the code, in rs6000-tdep.c around line 3334, there is a comment stating:
>
> /* if != -1, fdata.saved_gpr is the smallest number of saved_gpr.
> All gpr's from saved_gpr to gpr31 are saved. */
>
> I am, however, witnessing a function that appears to be saving r30, but not r31 (see the disassembly below). This, in turn, causes gdb to unwind r31 from a 'saved' area even though the area does not exist.
>
> 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
--
Daniel Jacobowitz
CodeSourcery
next prev parent reply other threads:[~2008-07-28 20:13 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-28 20:13 Aleksandar Ristovski
2008-07-28 20:29 ` Daniel Jacobowitz [this message]
2008-07-28 21:08 ` Aleksandar Ristovski
2008-07-29 1:46 ` Daniel Jacobowitz
2008-07-29 14:10 ` Aleksandar Ristovski
2008-07-29 15:42 ` Aleksandar Ristovski
2008-07-29 15:47 ` Daniel Jacobowitz
2008-07-29 16:52 ` Aleksandar Ristovski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080728201312.GA3911@caradoc.them.org \
--to=drow@false.org \
--cc=aristovski@qnx.com \
--cc=gdb@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox