From: Joel Brobecker Date: Tue, 22 Sep 2009 23:04:30 +0000 (+0000) Subject: * solib.c (solib_bfd_open): Relax a bit the compatibility check. X-Git-Tag: gdb_7_0-2009-10-06-release~52 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d00c529782aa60bbab8a0cd42100362d90cc225c;p=thirdparty%2Fbinutils-gdb.git * solib.c (solib_bfd_open): Relax a bit the compatibility check. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index cee94b06c06..9bc6892c983 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2009-09-22 Joel Brobecker + + * solib.c (solib_bfd_open): Relax a bit the compatibility check. + 2009-09-22 Daniel Jacobowitz * source.c (forget_cached_source_info): Clear last_source_visited. diff --git a/gdb/solib.c b/gdb/solib.c index c7fd0fcb607..a2ad0c4c1cd 100644 --- a/gdb/solib.c +++ b/gdb/solib.c @@ -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);