From: Daniel Jacobowitz <drow@false.org>
To: Janani Janakiraman <janani@linux.ibm.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [patch] Pushing Inferior Function Arguments onto Stack on PowerPC64 machines
Date: Tue, 03 Oct 2006 19:20:00 -0000 [thread overview]
Message-ID: <20061003192001.GA22779@nevyn.them.org> (raw)
In-Reply-To: <4522B5E2.mailKT8130U2Q@jananij.austin.ibm.com>
On Tue, Oct 03, 2006 at 02:11:30PM -0500, Janani Janakiraman wrote:
> This fixes a problem on Powerpc 64 machines while running gdb on 64 bit
> programs. The problem is with the alignment of the function arguments
> when they are pushed to the stack in the ppc64_sysv_abi_push_dummy_call.
> GCC expects the values to be right aligned.
Is Andrew's comment about the ABI correct, or incorrect? Do you know
for sure?
> ! /* WARNING: cagney/2003-09-21: As best I can
> ! tell, the ABI specifies that the value should
> ! be left aligned. Unfortunately, GCC doesn't
> ! do this - it instead right aligns even sized
> ! values and puts odd sized values on the
> ! stack. Work around that by putting both a
> ! left and right aligned value into the
> ! register (hopefully no one notices :-^).
> ! Arrrgh! */
--
Daniel Jacobowitz
CodeSourcery
next prev parent reply other threads:[~2006-10-03 19:20 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-10-03 19:15 Janani Janakiraman
2006-10-03 19:20 ` Daniel Jacobowitz [this message]
2006-10-04 19:00 janani
2006-10-04 19:11 ` Daniel Jacobowitz
2006-10-04 19:14 ` Daniel Jacobowitz
2006-10-04 20:19 ` Mark Kettenis
2006-10-04 20:27 ` Andreas Schwab
[not found] ` <OFE88464A1.C58B072A-ON872571FD.006ABA69-862571FD.006C7CFB@us.ibm.com>
2006-10-04 20:26 ` Daniel Jacobowitz
[not found] ` <drow@false.org>
2006-10-04 20:43 ` David Edelsohn
2006-10-04 20:52 ` Daniel Jacobowitz
2006-10-04 19:54 janani
2006-10-04 21:02 janani
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=20061003192001.GA22779@nevyn.them.org \
--to=drow@false.org \
--cc=gdb-patches@sourceware.org \
--cc=janani@linux.ibm.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