This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] Speed up find_pc_section



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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]