From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
authorKevin Buettner <kevinb@redhat.com>
Mon, 18 Feb 2002 05:53:04 +0000 (05:53 +0000)
committerKevin Buettner <kevinb@redhat.com>
Mon, 18 Feb 2002 05:53:04 +0000 (05:53 +0000)
* ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
of ``current_gdbarch''.

gdb/ChangeLog
gdb/ia64-tdep.c

index d4492630a0f9c05ce5b905c6cc04de74246acb64..b0007fc1b7005e22210e97cbc9d24e8cb6608a27 100644 (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.
index a9d3360f86560a82514d2bcbd65b75cbf478199c..8b027e01ad3ae25f9897c321e743d59d4b2eba8b 100644 (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));
This page took 0.026831 seconds and 4 git commands to generate.