From abb41287783930f282b8192665dae81793b934a0 Mon Sep 17 00:00:00 2001 From: Daniel Jacobowitz Date: Mon, 9 Oct 2006 19:58:07 +0000 Subject: [PATCH] * solib.c (solib_read_symbols): Stop if the file was not found. --- gdb/ChangeLog | 4 ++++ gdb/solib.c | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 81589e5eec..ad3ff0b9bc 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2006-10-09 Daniel Jacobowitz + + * solib.c (solib_read_symbols): Stop if the file was not found. + 2006-10-09 Paul Pluzhnikov PR c++/2116 diff --git a/gdb/solib.c b/gdb/solib.c index 1368227c63..8dbc8e3577 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, -- 2.11.0