This is the mail archive of the gdb-patches@sources.redhat.com 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]

Re: [rfa/arm] Make arm float->double arg pass portable(ish)


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.


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