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 | |
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''.
-rw-r--r-- | gdb/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/ia64-tdep.c | 6 |
2 files changed, 9 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index d449263..b0007fc 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -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. 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)); |