This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] Correct libthreadb register access for 64-bit sparc.
From: Andreas Schwab <schwab@linux-m68k.org>
Date: Sat, 06 Oct 2012 09:44:35 +0200
> David Miller <davem@davemloft.net> writes:
>
>> This also deals with a 64-bit debugger debugging a 32-bit process. We
>> use __WORDSIZE for the second argument of REGISTER () in this case,
>> just like s390, but unlike s390 we're big endian so we have to adjust
>
> Isn't s390 also big endian?
Then they will need to add the 4 byte offset to their macro
definition too. It's defining a 32-bit value in the
__WORDSIZE==32 case, so you have to say where the 32-bit
value is, not the 64-bit value it is contained within.