------- 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