This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFA] arm_store_return_value, big-endian (take 2)
- From: Richard Earnshaw <rearnsha at arm dot com>
- To: Michael Snyder <msnyder at redhat dot com>
- Cc: Richard dot Earnshaw at arm dot com, gdb-patches at sources dot redhat dot com
- Date: Thu, 14 Nov 2002 09:49:59 +0000
- Subject: Re: [RFA] arm_store_return_value, big-endian (take 2)
- Organization: ARM Ltd.
- Reply-to: Richard dot Earnshaw at arm dot com
> Oh, I see. Yes, it's no longer necessary. But if it's not so hard,
> and you already see what's necessary, why not just do it instead of
> ragging on me to do it? ;-)
>
Because I don't have a big-endian world in which I can test it.
> This what you have in mind? Please just take it from here, I really
> didn't intend to spend this much time and energy on it.
Nope, now you've broken larger-than-word objects.
>
> Index: arm-tdep.c
> ===================================================================
> RCS file: /cvs/src/src/gdb/arm-tdep.c,v
> retrieving revision 1.74
> diff -p -r1.74 arm-tdep.c
> *** arm-tdep.c 1 Nov 2002 21:21:49 -0000 1.74
> --- arm-tdep.c 13 Nov 2002 19:48:21 -0000
> *************** arm_store_return_value (struct type *typ
> *** 2417,2424 ****
> break;
> }
> }
> ! else
> ! write_register_bytes (ARM_A1_REGNUM, valbuf, TYPE_LENGTH (type));
> }
>
> /* Store the address of the place in which to copy the structure the
> --- 2417,2424 ----
> break;
> }
> }
> ! else
> ! write_register (ARM_A1_REGNUM, unpack_long (type, valbuf);
> }
>
> /* Store the address of the place in which to copy the structure the
>