This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch] Fix false warning: Shared library is missing debugging information.
- From: Pedro Alves <pedro at codesourcery dot com>
- To: gdb-patches at sourceware dot org
- Cc: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- Date: Mon, 11 Jan 2010 15:23:46 +0000
- Subject: Re: [patch] Fix false warning: Shared library is missing debugging information.
- References: <20100111151258.GA9354@host0.dyn.jankratochvil.net>
On Monday 11 January 2010 15:12:58, Jan Kratochvil wrote:
> So the case when debug info has been found - although in a separate debug info
> file - should be IMO the case "Yes" and not the case
> "Sorry-I've-tried-but-didn't-find-any".
Sounds right to me.
> + /* We just check the state of any single separate debug info file, if
> + such one exists. */
> + objfile = so->objfile;
> + if (objfile->separate_debug_objfile)
> + objfile = objfile->separate_debug_objfile;
> +
> if (! ui_out_is_mi_like_p (interp_ui_out (top_level_interpreter ()))
> && so->symbols_loaded
> - && !objfile_has_partial_symbols (so->objfile)
> - && !objfile_has_full_symbols (so->objfile))
> + && !objfile_has_partial_symbols (objfile)
> + && !objfile_has_full_symbols (objfile))
> {
> so_missing_debug_info = 1;
> ui_out_field_string (uiout, "syms-read", "Yes (*)");
>
separate_debug_objfile is now a list, so shouldn't you now look
over them all (main and all seperate objfiles) for symbols?
--
Pedro Alves