This is the mail archive of the gdb@sourceware.cygnus.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: wrong htons() used?


On Thu, Oct 21, 1999 at 05:09:05PM -0400, Scott Bambrough wrote:

> The problem is in tm-arm.h.  It defines TARGET_BYTE_ORDER_SELECTABLE. 
> The compatibility code in gdbarch.c 
> defaults to big endian (see line 2777).  Add the following to tm-arm.h:
> 
> #define TARGET_BYTE_ORDER_DEFAULT       LITTLE_ENDIAN
> 
> I think this will fix your problem.  I have fixed this while merging my
> target code for Linux with the current ARM target code.  I have
> defaulted the embedded targets to LITTLE_ENDIAN.  Any objections.

I'm not sure I understand the fix -- will this require that the
target ARM processor be running in little-endian mode?

-- 
Grant Edwards
Grant.Edwards@comtrol.com

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