* solib.c (solib_read_symbols): Stop if the file was not found.
authorDaniel Jacobowitz <drow@false.org>
Mon, 9 Oct 2006 19:58:07 +0000 (19:58 +0000)
committerDaniel Jacobowitz <drow@false.org>
Mon, 9 Oct 2006 19:58:07 +0000 (19:58 +0000)
gdb/ChangeLog
gdb/solib.c

index 81589e5..ad3ff0b 100644 (file)
@@ -1,3 +1,7 @@
+2006-10-09  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * solib.c (solib_read_symbols): Stop if the file was not found.
+
 2006-10-09  Paul Pluzhnikov  <ppluzhnikov@charter.net>
 
        PR c++/2116
index 1368227..8dbc8e3 100644 (file)
@@ -418,6 +418,11 @@ solib_read_symbols (struct so_list *so, int from_tty)
       if (from_tty)
        printf_unfiltered (_("Symbols already loaded for %s\n"), so->so_name);
     }
+  else if (so->abfd == NULL)
+    {
+      if (from_tty)
+       printf_unfiltered (_("Symbol file not found for %s\n"), so->so_name);
+    }
   else
     {
       if (catch_errors (symbol_add_stub, so,