This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFA] Sparc/Linux fixes part 1
On Sat, Apr 20, 2002 at 05:50:49PM -0700, David S. Miller wrote:
> This won't work at all for my case. There is no "elfosabi" to use to
> distinguish between Solaris ELF 32-bit Sparc (which has 16 byte long
> doubles) and Linux ELF 32-bit Sparc (which has 8 byte long doubles).
...so have your sparc-linux-{nat,tdep} _initialize function set the default
"sparc os abi" to Linux, or something.
> Maybe I can say "there is no way to distinguish whether it is a Linux
> 32-bit Sparc binary or a Solaris 32-bit Sparc one" 50 more times and
> people would begin to understand the situation.
You don't have to distinguish between the two binaries. Seems like you only
need to provide a default depending on the target GDB was configured for,
and a way to switch them at run-time.
(no ".note.ABI-tag" note section in sparc linux binaries, eh? oh well... my
suggestion would still work :-)
> Here, let me show everyone exactly what I am saying:
>
> ? uname -a
> Linux nuts.ninka.net 2.4.19-pre7 #1 SMP Fri Apr 19 20:18:39 PDT 2002 sparc64 unknown
> ? readelf -h /bin/sh | grep OS
> OS/ABI: UNIX - System V
> ?
>
> bash-2.03$ uname -a
> SunOS caip.rutgers.edu 5.8 Generic_108528-13 sun4u sparc SUNW,Ultra-Enterprise-10000
> bash-2.03$ readelf -h /bin/sh | grep OS
> OS/ABI: UNIX - System V
> bash-2.03$
>
> See?
Yes, I understood that from the beginning.
--
-- Jason R. Thorpe <thorpej@wasabisystems.com>