From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:

* ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
	of ``current_gdbarch''.
This commit is contained in:
Kevin Buettner 2002-02-18 05:53:04 +00:00
parent aa3932f699
commit 57bc8964fe
2 changed files with 9 additions and 3 deletions

View File

@ -1,3 +1,9 @@
2002-02-17 Kevin Buettner <kevinb@redhat.com>
From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
* ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
of ``current_gdbarch''.
2002-02-17 Tom Tromey <tromey@redhat.com>
* cli/cli-cmds.c (compare_strings): New function.

View File

@ -2090,9 +2090,9 @@ ia64_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
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;
}
tdep = xmalloc (sizeof (struct gdbarch_tdep));