This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug debug/35615] Debug information for .debug_loc section incorrect
- From: "wilson at tuliptree dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 Mar 2008 23:32:11 -0000
- Subject: [Bug debug/35615] Debug information for .debug_loc section incorrect
- References: <bug-35615-15932@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from wilson at tuliptree dot org 2008-03-17 23:32 -------
Subject: Re: Debug information for .debug_loc section incorrect
deuling at de dot ibm dot com wrote:
> objdump -W says:
> objdump: Error: Location lists in .debug_info section aren't in ascending
> order!
> As seen in comment #1 readelf also gives that error. AFAIK readelf does not
> use BFD library as GDB and objdump do so I believe this is not an error
> in BFD library.
objdump and readelf have different code for parsing elf files, but they
unfortunately use common code for dumping dwarf debug info. And this
code was broken. It was fixed 2007-11-16. With mainline binutils there
is no error here. It is broken in binutils-2.18 and earlier.
From inspecting the debug info, I also don't see anything wrong.
This looks like a gdb bug. It isn't clear how to reproduce the gdb
problem. I don't see any problem with some simple gdb commands on the
testcase.
Jim
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35615