This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: mips-tdep.c: Sign-extend pointers for n32
- From: Daniel Jacobowitz <drow at false dot org>
- To: "Maciej W. Rozycki" <macro at mips dot com>
- Cc: gdb-patches at sourceware dot org, David Ung <davidu at mips dot com>, "Maciej W. Rozycki" <macro at linux-mips dot org>
- Date: Wed, 19 Dec 2007 10:28:26 -0500
- Subject: Re: mips-tdep.c: Sign-extend pointers for n32
- References: <Pine.LNX.4.61.0710251443260.22756@perivale.mips.com> <20071216184625.GA22905@caradoc.them.org> <Pine.LNX.4.61.0712181902330.23732@perivale.mips.com>
On Wed, Dec 19, 2007 at 03:20:20PM +0000, Maciej W. Rozycki wrote:
> You are quite right here -- I have checked the N32 ABI document and it
> says:
>
> "32-bit integer (int) parameters are always sign-extended when passed in
> registers, whether of signed or unsigned type. [This issue does not arise
> in the o32-bit ABI.]"
What happens to an 8-bit unsigned char? How about an 8-bit signed
char?
> I have regression-tested the following rewrite of the original patch
> using the mipsisa32-sde-elf target, with the mips-sim-sde64/-mips64/-EB
> and mips-sim-sde64/-mips64/-EL boards, with the results the same as the
> original.
What ABI is that? I thought none of the ELF targets used n32 or n64,
but maybe SDE is an exception.
--
Daniel Jacobowitz
CodeSourcery