Check arches->gdbarch and not current_gdbarch when looking for a match.
authorAndrew Cagney <cagney@redhat.com>
Sat, 19 Aug 2000 05:32:23 +0000 (05:32 +0000)
committerAndrew Cagney <cagney@redhat.com>
Sat, 19 Aug 2000 05:32:23 +0000 (05:32 +0000)
gdb/ChangeLog
gdb/mips-tdep.c

index fd929792a63d143365c2f375db34592a36c7c8ee..d4b4a6b4fba25bbe6a59dcce9b269742f8873295 100644 (file)
@@ -1,3 +1,8 @@
+2000-08-18  Andrew Cagney  <cagney@ops1.cygnus.com>
+
+       * mips-tdep.c (mips_gdbarch_init): Check arches->gdbarch and not
+       current_gdbarch for a match.
+
 2000-08-18  J.T. Conklin  <jtc@redback.com>
 
        * MAINTAINERS: Add myself as dcache.c maintainer.
index 4139bbc2a0f0cc0fbc5d29bbcb4a4023e962f9ee..20d5446b47a087a04537add8a9f6d068bbcf95e2 100644 (file)
@@ -3884,9 +3884,9 @@ mips_gdbarch_init (struct gdbarch_info info,
     {
       /* MIPS needs to be pedantic about which ABI the object is
          using. */
-      if (gdbarch_tdep (current_gdbarch)->elf_flags != elf_flags)
+      if (gdbarch_tdep (arches->gdbarch)->elf_flags != elf_flags)
        continue;
-      if (gdbarch_tdep (current_gdbarch)->mips_abi != mips_abi)
+      if (gdbarch_tdep (arches->gdbarch)->mips_abi != mips_abi)
        continue;
       return arches->gdbarch;
     }
This page took 0.040454 seconds and 4 git commands to generate.