This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils 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]

addr2line


Is there a version of binutils where addr2line works for MIPS kernel
addresses?  Ever since GDB changed to Dwarf-2 output, addr2line hasn't
worked for addresses in the kernel range.

With older kernels (Stabs format) supplying sign-extended 64 bit
addresses works, though it's not really reasonable to have to do
that.  But with Dwarf binaries neither form works:

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 "--host=i386-unknown-netbsdelf1.6.2 --target=mipsel-pss-netbsdelf".
(gdb) file ../../bin/destdir.sbmips.debug/EQL.PSS.KGDB/netbsd.gdb
Reading symbols from /buildarea/cvs162/bin/destdir.sbmips.debug/EQL.PSS.KGDB/netbsd.gdb...x/i 0x80411ddone.
(gdb) x/i 0x80411d80
0x80411d80 <msdosfs_done+28>:   jal     0x80446af0 <pool_destroy>

but yet:

pkoning@plato1 src]$ /usr/local/EQLGCC_v7/mipsel/bin/mipsel-netbsdelf-addr2line --version
GNU addr2line 2.16
Copyright 2005 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.
[pkoning@plato1 src]$ /usr/local/EQLGCC_v7/mipsel/bin/mipsel-netbsdelf-addr2line -e ../../bin/destdir.sbmips.debug/EQL.PSS.KGDB/netbsd.gdb 0x80411d80
??:0
[pkoning@plato1 src]$ /usr/local/EQLGCC_v7/mipsel/bin/mipsel-netbsdelf-addr2line -e ../../bin/destdir.sbmips.debug/EQL.PSS.KGDB/netbsd.gdb 0xffffffff80411d80
??:0

	paul


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