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]

Re: corefiles/1905: Is SPARC 64 bit supported?


The following reply was made to PR corefiles/1905; it has been noted by GNATS.

From: 'Daniel Jacobowitz' <drow@false.org>
To: "Pickett, David" <David.Pickett@phlx.com>
Cc: gdb-gnats@sources.redhat.com
Subject: Re: corefiles/1905: Is SPARC 64 bit supported?
Date: Thu, 7 Apr 2005 15:15:07 -0400

 On Thu, Apr 07, 2005 at 03:09:43PM -0400, Pickett, David wrote:
 > 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
 
 You have to take care of that yourself - standard practice for using a
 compiler which defaults to 32-bit.  Try setting CFLAGS first.
 
 > 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!
 
 It's possible that the problem is something completely different.  But
 a 64-bit GDB is the first thing to try before looking for more subtle
 problems.  I believe the Solaris debugger gets the layout of core files
 from a Solaris header; that header provides only 32-bit interfaces to a
 32-bit GDB.
 
 
 -- 
 Daniel Jacobowitz
 CodeSourcery, LLC


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