* solib.c (solib_read_symbols): Call exception_fprintf even without
	FROM_TTY.  Print also so->so_name.
+2010-11-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * solib.c (solib_read_symbols): Call exception_fprintf even without
+       FROM_TTY.  Print also so->so_name.
+
 2010-11-04  Sami Wagiaalla  <swagiaal@redhat.com>
 
        * gdbtypes.h (struct rank): Created subrank.
 
        }
 
       if (e.reason < 0)
-       {
-         if (from_tty)
-           exception_fprintf
-             (gdb_stderr, e,
-              _("Error while reading shared library symbols:\n"));
-       }
+       exception_fprintf (gdb_stderr, e, _("Error while reading shared"
+                                           " library symbols for %s:\n"),
+                          so->so_name);
       else
        {
          if (from_tty || info_verbose)