This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [rfa/arm] Make arm float->double arg pass portable(ish)
- To: Richard dot Earnshaw at arm dot com
- Subject: Re: [rfa/arm] Make arm float->double arg pass portable(ish)
- From: Michael Snyder <msnyder at cygnus dot com>
- Date: Fri, 06 Jul 2001 10:51:34 -0700
- CC: Andrew Cagney <ac131313 at cygnus dot com>, gdb-patches at sources dot redhat dot com
- Organization: Red Hat
- References: <200107061408.PAA01105@cam-mail2.cambridge.arm.com>
Richard Earnshaw wrote:
>
> DOUBLEST dblval;
> ! dblval = extract_floating (val, len);
> len = TARGET_DOUBLE_BIT / TARGET_CHAR_BIT;
> ! val = alloca (len);
> ! store_floating (val, len, dblval);
>
> Are TARGET_DOUBLE_BIT and TARGET_CHAR_BIT really variable? If not, it
> would be better to have a local char array of the right size and avoid all
> this alloca() rubbish.
They are in the strict multi-arch sense (looking forward to the day
when a single gdb might be able to debug any number of differing
target architectures). This day may not be that far off.