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: [RFA] Fix too many "no debugging symbols found" warnings.


On Friday 05 June 2009 19:17:13, Tom Tromey wrote:

> IMO, the ideal would be to share objfiles across inferiors (perhaps a
> big task in itself) and then issue this warning at most once per
> objfile.  That way the user won't see 1000 warnings for /lib/libc.so.

100% agreed, both in the ideal bit, and on the task size bit.  :-)  For
true/always/full sharing, I'm thinking that we'd have to rework how gdb
addresses symbol values (we relocate everything early; we'd have to apply
relocation offsets on demand), and, we do some sorting of symbols, since
sections may end up loaded at different relative offsets within the
same objfile for different inferiors, in some targets.  E.g.,

objfiles.c:objfile_relocate:
...

 /* Relocating different sections by different amounts may cause the symbols
     to be out of order.  */
  msymbols_sort (objfile);

-- 
Pedro Alves


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