This is the mail archive of the
gdb-prs@sources.redhat.com
mailing list for the GDB project.
Re: build/319: sparc{v9,64}-sun-solaris doesn't support 64-bit binaries
- From: rbrown64 at csc dot com dot au
- To: kettenis at gnu dot org
- Cc: gdb-prs at sources dot redhat dot com,
- Date: 6 Jan 2004 07:48:00 -0000
- Subject: Re: build/319: sparc{v9,64}-sun-solaris doesn't support 64-bit binaries
- Reply-to: rbrown64 at csc dot com dot au
The following reply was made to PR build/319; it has been noted by GNATS.
From: rbrown64@csc.com.au
To: kettenis@gnu.org, gdb-prs@sources.redhat.com, kettenis@gnu.org,
nobody@sources.redhat.com, rbrown64@csc.com.au,
gdb-gnats@sources.redhat.com
Cc:
Subject: Re: build/319: sparc{v9,64}-sun-solaris doesn't support 64-bit binaries
Date: Tue, 6 Jan 2004 18:38:25 +1100
Building gdb+dejagnu-20040103 on sparc-sun-solaris2.8 with gcc 3.1 -m64
gave a gdb
that can set breakpoints in 32-bit binaries, in itself and another 64-bit
binary built with gcc-3.1.
=> The problem is FIXED!
This 64-bit binary built with a prerelease gcc 3.0.3 gives an I/O error
setting the breakpoint
$ file /space/local/64-bit/bin/gcov
/space/local/64-bit/bin/gcov: ELF 64-bit MSB executable SPARCV9 Version
1, dynamically linked, not stripped
$ ls -l /space/local/64-bit/bin/gcov
-rwxr-xr-x 1 rdb rand 89747 Jan 25 2002
/space/local/64-bit/bin/gcov
$ gdb/gdb /space/local/64-bit/bin/gcov
warning: A handler for the OS ABI "Solaris" is not built into this
configuration
of GDB. Attempting to continue with the default sparc settings.
GNU gdb 20040103
...
This GDB was configured as "sparc-sun-solaris2.8"...
warning: A handler for the OS ABI "Solaris" is not built into this
configuration
of GDB. Attempting to continue with the default sparc:v9 settings.
(gdb) b main
Breakpoint 1 at 0x10cc: file ../../gcc-3.0.3-20011217/gcc/gcov.c, line 249.
(gdb) r
Starting program: /space/local/64-bit/bin/gcov
Warning:
Cannot insert breakpoint 1.
Error accessing memory address 0x10cc: I/O error.
The old gcc was
Configured with: ../gcc-3.0.3-20011217/configure
--host=sparcv9-sun-solaris2.8 --exec-prefix=/usr/local/64-bit \
--with-gnu-as --with-as=/usr/local/64-bit/bin/as --with-gnu-ld
--with-ld=/usr/local/64-bit/bin/ld
Thread model: posix
gcc version 3.0.3 20011217 (prerelease)
bash-2.05a$ /usr/local/64-bit/bin/as --version
GNU assembler 020121 20020121
...
This assembler was configured for a target of `sparcv9-sun-solaris2.8'.
bash-2.05a$ /usr/local/64-bit/bin/ld --version
GNU ld version 020121 20020121
(Probably the correct response to being unable to debug 64-bit binaries
built with obsolete prerelease compilers and binutils
versions is: Don't do that then).
kettenis@gnu.org on 04/01/2004 23:41:51
Please respond to kettenis@gnu.org; Please respond to
gdb-prs@sources.redhat.com; Please respond to kettenis@gnu.org;
Please respond to nobody@sources.redhat.com; Please respond to
rbrown64@csc.com.au; Please respond to gdb-gnats@sources.redhat.com
To: gdb-prs@sources.redhat.com, kettenis@gnu.org,
nobody@sources.redhat.com, rbrown64@csc.com.au
cc:
Subject: Re: build/319: sparc{v9,64}-sun-solaris doesn't support 64-bit
binaries
Synopsis: sparc{v9,64}-sun-solaris doesn't support 64-bit binaries
Responsible-Changed-From-To: unassigned->kettenis
Responsible-Changed-By: kettenis
Responsible-Changed-When: Sun Jan 4 12:41:51 2004
Responsible-Changed-Why:
I fixed this.
State-Changed-From-To: open->feedback
State-Changed-By: kettenis
State-Changed-When: Sun Jan 4 12:41:51 2004
State-Changed-Why:
Should be fix. I'll close this one if I don't receive feedback within
a month.
http://sources.redhat.com/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gdb&pr=319