--- src/contrib/gdb/gdb/solib.c 1999/05/08 08:54:03 1.3.2.1 +++ src/contrib/gdb/gdb/solib.c 1999/05/22 08:29:22 1.3.2.2 @@ -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;