From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8076 invoked by alias); 13 Apr 2010 10:15:09 -0000 Received: (qmail 8067 invoked by uid 22791); 13 Apr 2010 10:15:08 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (38.113.113.100) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 13 Apr 2010 10:15:04 +0000 Received: (qmail 13996 invoked from network); 13 Apr 2010 10:14:59 -0000 Received: from unknown (HELO orlando.localnet) (pedro@127.0.0.2) by mail.codesourcery.com with ESMTPA; 13 Apr 2010 10:14:59 -0000 From: Pedro Alves To: tromey@redhat.com Subject: Re: [RFC] Group errors for many missing shared libraries Date: Tue, 13 Apr 2010 10:15:00 -0000 User-Agent: KMail/1.12.2 (Linux/2.6.31-20-generic; KDE/4.3.2; x86_64; ; ) Cc: gdb-patches@sourceware.org References: <201004121130.03196.pedro@codesourcery.com> In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201004131114.57018.pedro@codesourcery.com> X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2010-04/txt/msg00397.txt.bz2 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