This is the mail archive of the gdb-prs@sources.redhat.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]
Other format: [Raw text]

corefiles/1905: Is SPARC 64 bit supported?


>Number:         1905
>Category:       corefiles
>Synopsis:       Is SPARC 64 bit supported?
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Apr 05 21:28:01 UTC 2005
>Closed-Date:
>Last-Modified:
>Originator:     David Pickett
>Release:        6.3
>Organization:
>Environment:
Solaris 2.8, GCC 3.4.3
>Description:
I wrote a little test program that reports I didi make a 64 bit piece of code, but when main() returns, it core dumps.  If I add an "exit( 0 );",  it's happy.  Admittedly, I was rushing the gcc build.  Just for fun, I tried to gdb the core file, and it does not like the 64 bit sparc core file from code I linked with the Sun 64 bit linker:

#include <stdio.h>

main()
{
        printf( "%d\n", sizeof( long ) );
}


"mysrc/sol.c" 8 lines, 68 characters 

tdas-srv2:2:pts/47 /export/home/uabdp3
$ (PATH=l/gcc-3.4.3/gcc/stage2:$PATH ; xgcc -m64 -mptr64 -c mysrc/sol.c )
tdas-srv2:2:pts/47 /export/home/uabdp3
$ /usr/ccs/bin/sparcv9/ld -o bin/sol -lc sol.o
tdas-srv2:2:pts/47 /export/home/uabdp3
$ sol
8
Segmentation Fault(coredump)
tdas-srv2:2:pts/47 /export/home/uabdp3
$ gdb bin/sol core                                                        
GNU gdb 6.3
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "sparc-sun-solaris2.8"...
(no debugging symbols found)


warning: Couldn't find general-purpose registers in core file.


warning: Wrong size fpregset in core file.
Reading symbols from /usr/lib/sparcv9/libc.so.1...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/64/libc.so.1
Reading symbols from /usr/lib/sparcv9/libdl.so.1...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/64/libdl.so.1
Reading symbols from /usr/platform/SUNW,Ultra-Enterprise/lib/sparcv9/libc_psr.so.1...
(no debugging symbols found)...done.
Loaded symbols for /usr/platform/SUNW,Ultra-Enterprise/lib/sparcv9/libc_psr.so.1

warning: Couldn't find general-purpose registers in core file.


warning: Wrong size fpregset in core file.
#0  0x0000000000000000 in ?? ()
(gdb) where
#0  0x0000000000000000 in ?? ()
(gdb) tdas-srv2:2:pts/47 /export/home/uabdp3
$ file core
core:           ELF 64-bit MSB core file SPARCV9 Version 1, from 'sol'
tdas-srv2:2:pts/47 /export/home/uabdp3
$ 
>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


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