This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch] Fix separate-debug with non-unique section names (PR 11409)
- From: Tom Tromey <tromey at redhat dot com>
- To: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Wed, 24 Mar 2010 13:02:07 -0600
- Subject: Re: [patch] Fix separate-debug with non-unique section names (PR 11409)
- References: <20100323205655.GA12124@host0.dyn.jankratochvil.net>
- Reply-to: tromey at redhat dot com
>>>>> "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