This is the mail archive of the
gdb-prs@sources.redhat.com
mailing list for the GDB project.
RE: corefiles/1905: Is SPARC 64 bit supported?
- From: "Pickett, David" <David dot Pickett at phlx dot com>
- To: nobody at sources dot redhat dot com
- Cc: gdb-prs at sources dot redhat dot com,
- Date: 7 Apr 2005 19:18:01 -0000
- Subject: RE: corefiles/1905: Is SPARC 64 bit supported?
- Reply-to: "Pickett, David" <David dot Pickett at phlx dot com>
The following reply was made to PR corefiles/1905; it has been noted by GNATS.
From: "Pickett, David" <David.Pickett@phlx.com>
To: 'Daniel Jacobowitz' <drow@false.org>
Cc: gdb-gnats@sources.redhat.com
Subject: RE: corefiles/1905: Is SPARC 64 bit supported?
Date: Thu, 7 Apr 2005 15:09:43 -0400
No, despite the *64* configure, it seems to be 32 bit:
tdas-srv2:1:pts/160 /export/home/uabdp3/l/gdb-6.3
$ file $(whence gdb)
/export/home/uabdp3/l/local/bin/gdb: ELF 32-bit MSB executable SPARC
Version 1, dynamically linked, not stripped
tdas-srv2:1:pts/160 /export/home/uabdp3/l/gdb-6.3
$
I had the 64 bit capable gcc latest 3.4.3 in my path, but it failed to use
the -m64 to make 64 bit executables, like here:
gcc -c -g -O2 -I. -I. -I./config
-DLOCALEDIR="\"/export/home/uabdp3/l/local/share/locale\"" -DHAVE_CONFIG_H
-I./../include/opcode -I./../readline/.. -I../bfd -I./../bfd -I./../include
-I../intl -I./../intl -DMI_OUT=1 -DTUI=1 -Wimplicit -Wreturn-type -Wcomment
-Wtrigraphs -Wformat -Wparentheses -Wpointer-arith -Wuninitialized
-Wformat-nonliteral -Wunused-label -Wunused-function sparc64-sol2-tdep.c
BTW, it seems like it should be able to parse 64 bit core files with 32 bit
code, if it knows the layout. There's nothing going on over 2G in size!
Thanks,
David
-----Original Message-----
From: 'Daniel Jacobowitz' [mailto:drow@false.org]
Sent: Thursday, April 07, 2005 2:24 PM
To: Pickett, David
Cc: gdb-gnats@sources.redhat.com
Subject: Re: corefiles/1905: Is SPARC 64 bit supported?
On Thu, Apr 07, 2005 at 02:21:55PM -0400, Pickett, David wrote:
> I scoured the docs and install files, and there is no reference to the 64
> bit version. I am rebuilding with the string you suggested.
>
> I wonder why configure/make makes a less capable version than the machine
> and OS it is on? I'd hope the 64 bit gdb can deal with 32 bit code even
if
> it never gets used with 64 bit code.
>
> Here we go - - - Nope, still NG:
>
> tdas-srv2:1:pts/160 /export/home/uabdp3
> $ sol
> Segmentation Fault(coredump)
> tdas-srv2:1:pts/160 /export/home/uabdp3
> $ gdb bin/sol core
What does 'file gdb' say? Is it really a 64-bit binary?
> warning: Couldn't find general-purpose registers in core file.
>
>
> warning: Wrong size fpregset in core file.
This error suggests that it is not.
--
Daniel Jacobowitz
CodeSourcery, LLC