diff options
author | Kevin Buettner <kevinb@redhat.com> | 2002-02-18 05:53:04 +0000 |
---|---|---|
committer | Kevin Buettner <kevinb@redhat.com> | 2002-02-18 05:53:04 +0000 |
commit | 57bc8964fedbd14c09895759a9ed2f91a863c071 (patch) | |
tree | e0678929d7c959bbb56904c8d436c594cfe171d5 /gdb/ia64-tdep.c | |
parent | aa3932f6994dbe2b36f9f0dbd2d51d57e7833a99 (diff) | |
download | gdb-57bc8964fedbd14c09895759a9ed2f91a863c071.zip gdb-57bc8964fedbd14c09895759a9ed2f91a863c071.tar.gz gdb-57bc8964fedbd14c09895759a9ed2f91a863c071.tar.bz2 |
From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
* ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
of ``current_gdbarch''.
Diffstat (limited to 'gdb/ia64-tdep.c')
-rw-r--r-- | gdb/ia64-tdep.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/ia64-tdep.c b/gdb/ia64-tdep.c index a9d3360..8b027e0 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)); |