From 57bc8964fedbd14c09895759a9ed2f91a863c071 Mon Sep 17 00:00:00 2001 From: Kevin Buettner Date: Mon, 18 Feb 2002 05:53:04 +0000 Subject: [PATCH] From Peter Schauer : * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use of ``current_gdbarch''. --- gdb/ChangeLog | 6 ++++++ gdb/ia64-tdep.c | 6 +++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index d4492630a0f..b0007fc1b70 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2002-02-17 Kevin Buettner + + From Peter Schauer : + * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use + of ``current_gdbarch''. + 2002-02-17 Tom Tromey * cli/cli-cmds.c (compare_strings): New function. diff --git a/gdb/ia64-tdep.c b/gdb/ia64-tdep.c index a9d3360f865..8b027e01ad3 100644 --- a/gdb/ia64-tdep.c +++ b/gdb/ia64-tdep.c @@ -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)); -- 2.30.2