* cris-tdep.c (cris_gdbarch_init): Use arches instead of
authorAndrew Cagney <cagney@redhat.com>
Wed, 1 May 2002 03:14:05 +0000 (03:14 +0000)
committerAndrew Cagney <cagney@redhat.com>
Wed, 1 May 2002 03:14:05 +0000 (03:14 +0000)
current_gdbarch.

gdb/ChangeLog
gdb/cris-tdep.c

index d1fd934a2f17a6928ce0df3f7cb89b794c22d69b..053c1a3f653f35d0cc803e9fb3f7715fd16c095d 100644 (file)
@@ -1,3 +1,8 @@
+2002-04-30  Andrew Cagney  <ac131313@redhat.com>
+
+       * cris-tdep.c (cris_gdbarch_init): Use arches instead of
+       current_gdbarch.
+
 2002-04-30  Michael Snyder  <msnyder@redhat.com>
 
        * arm-tdep.c: Whitespace clean-ups.
index 9a526114d9a51dd4b1e8243b7b64114d95ed2008..e85ac129f331561fb59e0d3fe43046f2ef8f1d67 100644 (file)
@@ -4100,17 +4100,19 @@ cris_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
           cris_abi = CRIS_ABI_V2;
         }
     }
-  else if (gdbarch_tdep (current_gdbarch))
+  else if (arches != NULL)
     {
-      /* No bfd available.  Stick with whatever ABI we're currently using.  
-         (This is to avoid changing the ABI when the user updates the 
-         architecture with the 'set cris-version' command.)  */
-      cris_abi = gdbarch_tdep (current_gdbarch)->cris_abi;
+      /* No bfd available.  Stick with the ABI from the most recently
+         selected architecture of this same family (the head of arches
+         always points to this).  (This is to avoid changing the ABI
+         when the user updates the architecture with the 'set
+         cris-version' command.)  */
+      cris_abi = gdbarch_tdep (arches->gdbarch)->cris_abi;
     }
   else
     {
-      /* No bfd, and no current architecture available.  Assume it's the 
-         new ABI.  */
+      /* No bfd, and no previously selected architecture available.
+         Assume it's the new ABI.  */
       cris_abi = CRIS_ABI_V2;
     }
 
This page took 0.029973 seconds and 4 git commands to generate.