From: Jan Kratochvil <jan.kratochvil@redhat.com>
To: Tristan Gingold <gingold@adacore.com>,
Pedro Alves <pedro@codesourcery.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [patch] Fix false warning: Shared library is missing debugging information.
Date: Mon, 11 Jan 2010 16:08:00 -0000 [thread overview]
Message-ID: <20100111160720.GB12356@host0.dyn.jankratochvil.net> (raw)
In-Reply-To: <201001111523.46705.pedro@codesourcery.com> <006D59C6-DF98-4113-96E2-3F6374528EF3@adacore.com>
On Mon, 11 Jan 2010 16:22:06 +0100, Tristan Gingold wrote:
> I think you should use !objfile_has_symbols (so->objfile) instead.
OK, missed that function, thanks.
> It is somewhat wrong to check objfile->separate_debug_objfile without
> checking the whole chain, because the chain has no particular order.
When thinking more about it it is probably more important than I thought. One
can have one of the .o files stripped while not the other ones.
On Mon, 11 Jan 2010 16:23:46 +0100, Pedro Alves wrote:
> separate_debug_objfile is now a list, so shouldn't you now look
> over them all (main and all seperate objfiles) for symbols?
yes...
No regressions on {x86_64,x86_64-m32,i686}-fedora12-linux-gnu.
Thanks,
Jan
2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
Tristan Gingold <gingold@adacore.com>
* solib.c (info_sharedlibrary_command): Replace
objfile_has_partial_symbols and objfile_has_full_symbols calls by
objfile_has_symbols.
--- a/gdb/solib.c
+++ b/gdb/solib.c
@@ -863,8 +863,7 @@ info_sharedlibrary_command (char *pattern, int from_tty)
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_symbols (so->objfile))
{
so_missing_debug_info = 1;
ui_out_field_string (uiout, "syms-read", "Yes (*)");
next prev parent reply other threads:[~2010-01-11 16:08 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-11 15:13 Jan Kratochvil
2010-01-11 15:21 ` Tristan Gingold
2010-01-11 16:08 ` Jan Kratochvil [this message]
2010-01-11 16:14 ` Pedro Alves
2010-01-11 16:31 ` Jan Kratochvil
2010-01-11 18:08 ` Tom Tromey
2010-01-11 15:23 ` Pedro Alves
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100111160720.GB12356@host0.dyn.jankratochvil.net \
--to=jan.kratochvil@redhat.com \
--cc=gdb-patches@sourceware.org \
--cc=gingold@adacore.com \
--cc=pedro@codesourcery.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox