Re: [patch] Speed up find_pc_section

Paul Pluzhnikov
2009-09-11T16:23:18Z

On Fri, Sep 11, 2009 at 1:39 AM, Tristan Gingold <gingold@adacore.com> wrote:

>> It sounds to me as if you'd want to pick up just the debug bits from
>> *.o, without turning them into full-blown objfiles.
>
> Right, but why not doing this also for separate debuginfo ?

I can't think of a reason, though the patch to do so might get large.
Looks like the separate debuginfo support was added here:

2003-01-23 Alexander Larsson <alexl@redhat.com>
Jim Blandy <jimb@redhat.com>

Add support for executables whose debug info has been separated
out into a separate file, leaving only a link behind.
* objfiles.h (struct objfile): New fields: separate_debug_objfile
and separate_debug_objfile_backlink.

Perhaps Jim could comment on the merits of creating a separate objfile
for the debuginfo file.

Thanks,
--
Paul Pluzhnikov