On Thu, Feb 27, 2003 at 10:44:11AM +0100, [email protected] wrote:
> For a couple of reasons, I'd like to build the ncurses and gdb
> packages for sparc64 co-installed with the sparc ones.
well, I forgot to say why on earth I'd like this at all in the first
place... to debug binaries built for target sparc64-linux...
Here's what I get for example for a recent binutils built for
sparc64-linux:
[chj@u1sparc chj]$ which ld
/usr/local/gcc-binutils/bin/ld
[chj@u1sparc chj]$ file /usr/local/gcc-binutils/bin/ld
/usr/local/gcc-binutils/bin/ld: ELF 64-bit MSB executable, SPARC V9, version 1 (SYSV), dynamically linked (uses shared libs), not stripped
[chj@u1sparc chj]$ /usr/local/gcc-binutils/bin/ld --version
GNU ld version 2.13.90 20030227
Copyright 2002 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License. This program has absolutely no warranty.
[chj@u1sparc chj]$ gdb /usr/local/gcc-binutils/bin/ld
GNU gdb Red Hat Linux (5.2-2)
Copyright 2002 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-redhat-linux"...
(gdb) r
Starting program: /usr/local/gcc-binutils/bin/ld
warning: Cannot insert breakpoint -1:
Cannot access memory at address 0xef80
(gdb) where
#0 0x00002a00 in ?? ()
Cannot access memory at address 0xfffff13d
(gdb) quit
The program is running. Exit anyway? (y or n) y
[chj@u1sparc chj]$
Cheers,
/ChJ
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.