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: Initialize default floating-point model on ARM for GNU binaries


On Tue, 2006-07-18 at 18:47, Mark Kettenis wrote:
> > From: Richard Earnshaw <rearnsha@arm.com>
> > Date: Tue, 18 Jul 2006 17:31:56 +0100
> > 
> > The problem is that in the most common configuration still using the
> > legacy ELF format (arm-unknown-elf) the flags are generated incorrectly
> > by the compiler/assembler combination.  These tools fail to correctly
> > set the softfpa bit in the ELF header and the result is that gdb will
> > think they contain FPA instructions when they do not.  Thus I think this
> > change will cause a large number of new failures on arm-elf.
> > 
> > I guess we could fudge this by making the auto-detect code fold case 0
> > on to case EF_ARM_SOFT_FLOAT, but it would need a big comment to explain
> > the background.
> 
> That doesn't sound like a bad idea.  Here's a patch with a variant of
> this: leave things set to "auto" if no flag is set.  That way the code
> path for arm-unknown-elf will be very close to what it is right now,
> which will default to "softfpa" in the end.
> 
> ok?
> 
> 
> Index: ChangeLog
> from  Mark Kettenis  <kettenis@gnu.org>
> 
> 	* arm-tdep.c (arm_gdbarch_init): Get default floating-point model
> 	from ELF flags for binaries produced by the GNU toolchain.

Thanks, this is fine.

R.


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