This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [obv] testsuite: gdb.trace/*: Use is_lp64_target


On Fri, Aug 26, 2011 at 8:37 AM, Jan Kratochvil
<jan.kratochvil@redhat.com> wrote:
> On Fri, 26 Aug 2011 15:48:33 +0200, H.J. Lu wrote:
>> On Fri, Aug 26, 2011 at 2:25 AM, Jan Kratochvil <jan.kratochvil@redhat.com> wrote:
>> > -if [istarget "x86_64-*"] then {
>> > +if {([istarget "x86_64-*"] || [istarget "i?86-*"]) && [is_lp64_target]} then {
>> > ? ? set fpreg "\$rbp"
>> > -} elseif [istarget "i?86-*"] then {
>> > +} elseif {[istarget "x86_64-*"] || [istarget "i?86-*"]} then {
>> > ? ? set fpreg "\$ebp"
>> > ?} else {
>> > ? ? set fpreg "\$fp"
>> >
>>
>> That is wrong for x32. X32 isn't LP64, but has 64bit registers.
>
> I agree. ?I tried to fix all the [is_lp64_target] vs. ![is_ilp32_target] cases
> for x86* in the testsuite but I am not sure how x32* behaves, do you have
> some qemu/kvm image with x32* toolchain? ?I could not fina any on:
> ? ? ? ?http://sites.google.com/site/x32abi/
>

If you use Fedora 15, you can add x32 yum repository:

http://www.kernel.org/pub/linux/libs/glibc/hjl/x32/fedora/15/x86_64/

and install x32 kernel/glibc rpms.  Then you can enable x32 on
GCC trunk.

BTW, I will upload x32 GCC binary for Fedora 15 to

http://www.kernel.org/pub/linux/libs/glibc/hjl/x32/fedora/15/gcc/

It may take a while.

Thanks.

-- 
H.J.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]