[patch] Pushing Inferior Function Arguments onto Stack on PowerPC64 machines
Daniel Jacobowitz
drow@false.org
Tue Oct 3 19:20:00 GMT 2006
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
More information about the Gdb-patches
mailing list