This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA] Fix too many "no debugging symbols found" warnings.
- From: Pedro Alves <pedro at codesourcery dot com>
- To: tromey at redhat dot com
- Cc: gdb-patches at sourceware dot org, Doug Evans <dje at google dot com>, Eli Zaretskii <eliz at gnu dot org>
- Date: Fri, 5 Jun 2009 19:49:44 +0100
- Subject: Re: [RFA] Fix too many "no debugging symbols found" warnings.
- References: <20090523232414.BED2B846C2@localhost> <200906042221.22713.pedro@codesourcery.com> <m3y6s6tuja.fsf@fleche.redhat.com>
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