[Wombat] What about gdb and debugging sparc64 binaries?

Christian Joensson <[email protected]> Wed, 2 Jun 2004 11:40:05 +0200
Newsgroups gmane.linux.aurora.devel
Message-ID <[email protected]>
I just have a simple questione here, how do we debug sparc64 binaries?

See the example below...

[chj@u1sparc objdir]$ gdb gcc/xgcc
GNU gdb Red Hat Linux (6.0post-0.20040223.7rh)
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-redhat-linux-gnu"...
warning: A handler for the OS ABI "GNU/Linux" is not built into this configuration
of GDB.  Attempting to continue with the default sparc:v9 settings.
 
Using host libthread_db library "/lib/libthread_db.so.1".
 
(gdb) set args -v
(gdb) r
Starting program: /usr/local/src/branch/objdir/gcc/xgcc -v
Warning:
Cannot insert breakpoint -1.
Error accessing memory address 0x7e0f120: Input/output error.
 
(gdb) q
The program is running.  Exit anyway? (y or n) y
[chj@u1sparc objdir]$ file gcc/xgcc
gcc/xgcc: ELF 64-bit MSB executable, SPARC V9, version 1 (SYSV), for GNU/Linux 2.4.0, for GNU/Linux 2.4.0, dynamically linked (uses shared libs), not stripped
[chj@u1sparc objdir]$

Cheers,

/ChJ
_______________________________________________
Aurora-sparc-devel mailing list
[email protected]
http://lists.auroralinux.org/mailman/listinfo/aurora-sparc-devel
Aurora FAQ: http://www.ecs.soton.ac.uk/~mas01r/aurorafaq.html