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: [PATCH] Fixup convenience variables on endian switch


In addition to Jim's question about structures, and the overall
question of whether this is worth doing...

On Wed, Nov 16, 2005 at 02:30:41PM +0000, Andrew STUBBS wrote:
> +  /* Don't do anything if the endian has not changed.
> +     Also disregard FP types because they don't seem to vary with
> +     endian - at least, not on i686 Linux or sparc Solaris.  */

That's not correct.  The only reason it appears that way is because
those targets normally support only one endian, so their gdbarch system
only selects one set of floatformats.  Changing endianness can change
the layout of the standard floating point types arbitrarily.

-- 
Daniel Jacobowitz
CodeSourcery, LLC


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