* solib.c (solib_bfd_open): Relax a bit the compatibility check.
authorJoel Brobecker <brobecker@gnat.com>
Tue, 22 Sep 2009 23:03:30 +0000 (23:03 +0000)
committerJoel Brobecker <brobecker@gnat.com>
Tue, 22 Sep 2009 23:03:30 +0000 (23:03 +0000)
gdb/ChangeLog
gdb/solib.c

index cb94bd2d80a8cf2dcd54d69d48746835ee105c8e..8e7c726ebf7899db3e7149576ba1e71096fb5483 100644 (file)
@@ -1,3 +1,7 @@
+2009-09-22  Joel Brobecker  <brobecker@adacore.com>
+
+       * solib.c (solib_bfd_open): Relax a bit the compatibility check.
+
 2009-09-22  Daniel Jacobowitz  <dan@codesourcery.com>
 
        * source.c (forget_cached_source_info): Clear last_source_visited.
index c7fd0fcb607630c236368b2f82523f89de53a121..a2ad0c4c1cdf475b943ee1155decd2166adf1a23 100644 (file)
@@ -310,7 +310,7 @@ solib_bfd_open (char *pathname)
 
   /* Check bfd arch.  */
   b = gdbarch_bfd_arch_info (target_gdbarch);
-  if (b->compatible (b, bfd_get_arch_info (abfd)) != b)
+  if (!b->compatible (b, bfd_get_arch_info (abfd)))
     warning (_("`%s': Shared library architecture %s is not compatible "
                "with target architecture %s."), found_pathname,
              bfd_get_arch_info (abfd)->printable_name, b->printable_name);