Re: [RFA] Fix has_section_at_zero for separate debug files

Kevin Buettner
2010-04-28T22:40:33Z

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