Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Pedro Alves <pedro@codesourcery.com>
To: tromey@redhat.com
Cc: gdb-patches@sourceware.org
Subject: Re: [RFC] Group errors for many missing shared libraries
Date: Tue, 13 Apr 2010 10:15:00 -0000	[thread overview]
Message-ID: <201004131114.57018.pedro@codesourcery.com> (raw)
In-Reply-To: <m3sk70csyr.fsf@fleche.redhat.com>

On Monday 12 April 2010 21:32:28, Tom Tromey wrote:
> Pedro>  warning: Could not load shared library symbols for 10 libraries, e.g. /lib/libncurses.so.5.
> Pedro>  Do you need "set solib-search-path" or "set sysroot"?
> 
> I think it is a definite improvement.
> 
> Pedro> You can later still do "info sharedlibrary" to check
> Pedro> exactly which shared libraries don't have symbols read in:
> 
> How about mentioning this in the message if there is more than one
> missing?

Good idea.  Does this sound right?

Index: src/gdb/solib.c
===================================================================
--- src.orig/gdb/solib.c        2010-04-13 11:12:09.000000000 +0100
+++ src/gdb/solib.c     2010-04-13 11:12:06.000000000 +0100
@@ -733,6 +733,7 @@ Do you need \"set solib-search-path\" or
       else if (not_found > 1)
        warning (_("\
 Could not load shared library symbols for %d libraries, e.g. %s.\n\
+Use the \"info sharedlibrary\" command to see the complete listing.\n\
 Do you need \"set solib-search-path\" or \"set sysroot\"?"),
                 not_found, not_found_filename);
     }


./gdb -ex "set sysroot /home/pedro/lixo/sysroot" ./gdb
:
(top-gdb) start
Temporary breakpoint 3 at 0x4572b3: file ../../src/gdb/gdb.c, line 28.
Starting program: /home/pedro/gdb/baseline/build/gdb/gdb
warning: Could not load shared library symbols for 10 libraries, e.g. /lib/libncurses.so.5.
Use the "info sharedlibrary" command to see the complete listing.
Do you need "set solib-search-path" or "set sysroot"?

-- 
Pedro Alves


  reply	other threads:[~2010-04-13 10:15 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-12 10:30 Pedro Alves
2010-04-12 20:32 ` Tom Tromey
2010-04-13 10:15   ` Pedro Alves [this message]
2010-04-13 21:00     ` Tom Tromey
2010-04-14 13:53       ` 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=201004131114.57018.pedro@codesourcery.com \
    --to=pedro@codesourcery.com \
    --cc=gdb-patches@sourceware.org \
    --cc=tromey@redhat.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