+2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
+
+ * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
+ of ``current_gdbarch''.
+
2002-02-19 Richard Earnshaw <rearnsha@arm.com>
* armnbsd-nat.c : ANSIfy all function declarations.
arches != NULL;
arches = gdbarch_list_lookup_by_info (arches->next, &info))
{
- if (gdbarch_tdep (current_gdbarch)->os_ident != os_ident)
- continue;
- return arches->gdbarch;
+ tdep = gdbarch_tdep (arches->gdbarch);
+ if (tdep && tdep->os_ident == os_ident)
+ return arches->gdbarch;
}
/* Allocate space for the new architecture. */