This is the mail archive of the
gdb-patches@sourceware.cygnus.com
mailing list for the GDB project.
Re: Better way to get the arch/endianess?
- To: Eli Zaretskii <eliz at is dot elta dot co dot il>
- Subject: Re: Better way to get the arch/endianess?
- From: Andrew Cagney <ac131313 at cygnus dot com>
- Date: Thu, 08 Jun 2000 08:40:22 +1000
- CC: binutils at sourceware dot cygnus dot com, gdb-patches at sourceware dot cygnus dot com
- Organization: Cygnus Solutions
- References: <393E42D9.5DD13CCA@cygnus.com> <200006071629.MAA18259@indy.delorie.com>
Eli Zaretskii wrote:
>
> > Date: Wed, 07 Jun 2000 22:40:57 +1000
> > From: Andrew Cagney <ac131313@cygnus.com>
> >
> > I'm
> > wondering if there isn't a better way - something that just returned the
> > default configured architecture and byte order.
> >
> > Suggestions?
>
> I understand that your problem is limited to non-native architectures,
> yes? Because in a native configuration you could simply compute the
> endiannes at runtime. Am I missing something?
Its a general problem. GDB might have builtin support for SPARC 32/64.
It needs to know which of those two architectures to default to so that
it can do some basic things when there is no object file. The assembler
does this now.
As for endianess I think all the bi-endian OS's have been put to rest
:-)
Andrew