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]

[0/9] BFD sharing


This series is a follow-on to my earlier minsym sharing series.

Rather than attempt any sort of symbol sharing, which remains relatively
hard, this series takes some baby steps in that direction.  Namely, it
implements better sharing of BFDs, at least in the local file case, and
it moves some obviously-shared data to be attached to the BFD rather
than the objfile.

This results in a bit less memory use; most noticeable in the
multi-inferior case, though GDB is now a bit more efficient even in the
single-inferior case, because currently multiple BFDs are made for the
main file.

In my earlier series I was concerned about bad interactions between the
BFD file descriptor cache and this code; but I think that the BFD file
descriptor is broken even in today's GDB (there's even a PR with a
real-life failure).

Tom


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