[patch] Speed up find_pc_section

Tristan Gingold gingold@adacore.com
Fri Sep 11 08:39:00 GMT 2009


On Sep 11, 2009, at 10:33 AM, Paul Pluzhnikov wrote:

> On Fri, Sep 11, 2009 at 12:53 AM, Tristan Gingold  
> <gingold@adacore.com> wrote:
>>>
>>> [The separate debuginfo file is thus fundamentally different from  
>>> the
>>> "bunch of .o files with debug info on MacOS", and extending the  
>>> separate
>>> debuginfo to cover MacOS situation (mentioned elsewhere as a  
>>> possible
>>> solution) is (IMHO) the wrong approach.]
>>
>> Can you elaborate ?
>>
>> IMHO this is not fundamentally different.  In both cases, one file  
>> contains
>> the code and the other/others debug infos.
>
> As I said before, the "primary" and "secondary" objfiles in the
> separate debuginfo case have a common ancestor, and are almost like
> identical twins: same sections (except for the weird F11 prelinking
> case), same symbol tables, same file ELF file type, etc.

That's understood.

> That isn't at all the case for MacOS "bunch of .o files" -- now we
> have a "pile of parts" and a "completed engine". Certainly the
> sections from separate .o files should not appear in the section map;
> not sure whether symbols should, but likely not.

Too.

> 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 ?

Tristan.



More information about the Gdb-patches mailing list