Re: [RFC] Group errors for many missing shared libraries

Pedro Alves
2010-04-13T10:15:09Z

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