This is the mail archive of the
gdb@sourceware.cygnus.com
mailing list for the GDB project.
Re: Restructuring i386_extract_return_value
- To: kettenis at wins dot uva dot nl
- Subject: Re: Restructuring i386_extract_return_value
- From: Eli Zaretskii <eliz at delorie dot com>
- Date: Fri, 10 Mar 2000 12:42:08 -0500 (EST)
- CC: gdb at sourceware dot cygnus dot com
- References: <200003092241.e29Mfow00303@delius.kettenis.local>
- Reply-to: Eli Zaretskii <eliz at is dot elta dot co dot il>
> Comments are welcome!
The changes seem okay, but I have one consideration:
> 1. The majority of i386 targets in GCC return floating-point values by
> default on the FPU stack. In fact the only exception is NeXT.
> There is a switch `-mno-fp-ret-in-387' to force GCC to return
> floating-point values in the ordinary CPU registers. I don't think
> this can be determined from the debugging information. Is it worth
> adding a i386 target specific option to enable people to debug
> this code? Propably not.
Is this switch so painful to support that it is justified to disable
debugging such programs?
In my experience, about 5 minutes after you release a product based on
the assumption that this switch is not used enough to care about,
somebody posts a bug report for a program which does use that
switch...
So I think it might be a good idea to support it if that is feasible.