Re: [patch] Fix separate-debug with non-unique section names (PR 11409)

Tom Tromey
2010-03-24T19:02:18Z

>>>>> "Jan" == Jan Kratochvil <jan.kratochvil@redhat.com> writes:

Jan> gdb-7.1 is now broken for example for debugging /usr/bin/emacs due to:
Jan> http://sourceware.org/bugzilla/show_bug.cgi?id=11409
Jan> [22] .data PROGBITS 00000000007fe8a0 1fe8a0 215068 00 WA 0 0 32
Jan> [23] .data PROGBITS 0000000000a13920 413920 68c6e0 00 WA 0 0 32

Jan> 2010-03-23 Jan Kratochvil <jan.kratochvil@redhat.com>
Jan> * symfile.c (addr_info_make_relative): Move sect declaration to the
Jan> outer block. Initialize it to NULL. Prefer SECT->next more than
Jan> bfd_get_section_by_name.

This patch seems to assume that all sections of the same name will be
next to each other in the section_addr_info. Why is it ok to make this
assumption?

Tom