summaryrefslogtreecommitdiff
path: root/gdb/solib.c
diff options
context:
space:
mode:
authorDaniel Jacobowitz <dan@debian.org>2006-10-09 19:58:07 +0000
committerDaniel Jacobowitz <dan@debian.org>2006-10-09 19:58:07 +0000
commitabb41287783930f282b8192665dae81793b934a0 (patch)
tree266d506487e4c445f2c58fdabf478d0f54089053 /gdb/solib.c
parentf9dde0a9db7d3c38f81198f6622171cd1405a270 (diff)
downloadgdb-abb41287783930f282b8192665dae81793b934a0.tar.gz
* solib.c (solib_read_symbols): Stop if the file was not found.
Diffstat (limited to 'gdb/solib.c')
-rw-r--r--gdb/solib.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/solib.c b/gdb/solib.c
index 1368227c638..8dbc8e35779 100644
--- a/gdb/solib.c
+++ b/gdb/solib.c
@@ -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,