diff options
-rw-r--r-- | contrib/gdb/gdb/solib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/gdb/gdb/solib.c b/contrib/gdb/gdb/solib.c index 5ca5f28..0612652 100644 --- a/contrib/gdb/gdb/solib.c +++ b/contrib/gdb/gdb/solib.c @@ -1151,7 +1151,7 @@ find_solib (so_list_ptr, maybe_changed) SVR4, it has no name. For others (Solaris 2.3 for example), it does have a name, so we can no longer use a missing name to decide when to ignore it. */ - if (!IGNORE_FIRST_LINK_MAP_ENTRY (new -> lm)) + if (new && !IGNORE_FIRST_LINK_MAP_ENTRY (new -> lm)) { int errcode; char *buffer; |