This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA] Fix has_section_at_zero for separate debug files
- From: Kevin Buettner <kevinb at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Wed, 28 Apr 2010 15:40:23 -0700
- Subject: Re: [RFA] Fix has_section_at_zero for separate debug files
- References: <20100107130918.GA11037@chinon.act-europe.fr>
On Thu, 7 Jan 2010 14:09:18 +0100
Tristan Gingold <gingold@ACT-Europe.FR> wrote:
> 2010-01-07 Tristan Gingold <gingold@adacore.com>
>
> * dwarf2read.c (dwarf2_locate_sections): Also consider SEC_ALLOC
> sections to set has_section_at_zero.
> (dwarf2_psymtab_to_symtab): Do not copy has_section_at_zero from
> backlink for separate debug file.
Tristan's patch causes no regressions for the gdb.base/sepdebug.exp
test, for which I had used a different approach for fixing problems
for that I was seeing when testing a mep-elf toolchain.
Tristan's patch reverts my earlier work and uses a different approach
to ensure that `has_section_at_zero' is set correctly. I endorse this
approach and think that this patch should be committed.
Kevin